React - Component & JSX
It is time to start composing
Your application will be build from multiple replacable and reusable components.
After learing basic syntax you will know how to properly build an app from blocks. Start with static components and components that render their children components.
Deeper knowledge into JSX syntaxt will anable you to understand that underneach its is just a pure JavaScript code written in more readable and developer friendly way.
Basic structure
I can create a simple component that will contain some static HTML and text. I know how to use this component to render it
What is JSX
I know that JSX is a syntact extention similar to HTML that is used to combine components into more complicated structures.
I know how to render some parts of them conditionally and change the content based on variables
Props vs state
I understand that props is data pased into component from parent component while state is data kept inside the component
I know how to pass and utilize props inside components
Deeper into JSX
I know that JSX is just a JavaScript sugar that is equivalent of React.createElement
I know the reason, why class can not be used as property of component and why it has been replaced with className
I can create a simple component that will contain some static HTML and text. I know how to use this component to render it
I know that JSX is a syntact extention similar to HTML that is used to combine components into more complicated structures.
I know how to render some parts of them conditionally and change the content based on variables
I understand that props is data pased into component from parent component while state is data kept inside the component
I know how to pass and utilize props inside components
I know that JSX is just a JavaScript sugar that is equivalent of React.createElement
I know the reason, why class can not be used as property of component and why it has been replaced with className