React Basics

Fig 1: General render code in React.
Fig. 2: A more concrete example for React.
Fig. 3: An example of props.
Fig. 4: State in React.
Fig. 5: Events in React. We can see it is different from JavaScript.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store