8. React Element
Once react element is rendered it can’t be updated
(it represents the state of UI at a given time).
Is a plain object representation of a DOM node.
Is not what you are going to see in the screen.
Can be composed of other react components.
9. Reconciliation is the process of generating an object
representation of the DOM and is performed :
React Element
Every time setState or ReactDOM.render is called.
When the state changes the react component is re-rendered
(thanks Virtual DOM)
10. Components are the building blocks for react.
A component is a class or a function that optionally accepts
input and returns a react element.
If a component is a function then it is stateless(has no state
and no event hooks).
React Component
11. State & props
State : data that is associated with the component
Props : variables passed from the parent to the component
13. JSX is always going to get transpiled to React.createElement invocations via babel
JSX is only an abstraction over React.createElement
JSX
JSX is simply a Javascript code with the declarativeness and familiarity of HTML