This tutorial will give you a basic understanding of React by building a verysimple application. I’ll leave out everything which I don’t think is core.

And then if it sparks your interest, and you want to learn more, you can check out our free React course on Scrimba.

But as for now, let’s focus on the basics!

The setup

When getting started with React, you should use the simplest setup possible: an HTML file which imports the React and the ReactDOM libraries using script tags.

It looks like this:








    

We’ve also imported Babel, as React uses something called JSX to write markup. We’ll need to transform the JSX into plain JavaScript, so that the browser can understand it.

There are more two things I want you to notice:

  1. The 
     with the id of #root. This is the entry point for our app. This is where our entire app will live.
  2. The