- Declarative Javascript Code.
With React.js you define the 'goal' (i.e. What should be shown on the screen) and let react figure out how to get there.
- It is a special, non-standard syntax which is enabled in React Project.
- Every UI in the end up is made up of multiple building blocks (= components), hence it makes sense to think about user interfaces as "Combinations of components".
-
You define the desired outcome (e.g. a target UI) and let the library (React) figure out the steps.
-
You define the target "State" (UI) and React figure out which JS commands need to be executed to bring that result to life.
- It is a JS function which typically returns HTML(JSX) code that should be displayed.
- Thats totaly up to you.