React #1

why we use REACT???

  • Because of its speed using Virtual DOM.

  • The components can be reused.

Let's start by making an index.html file that has a div with an id root inside which we render the elements.

Screenshot (1).png

Create the next file index.js and use the render method which takes 2 arguments -what you want to render, and where do you need to render.

Screenshot (2).png.

Here we have our first page😉