First of all, you are going to need NPM (or Yarn, alternatively). Let’s use NPM for this example.
If you don’t have it installed on your system, then you need to head to the official Node.js website to download and install Node, which also includes NPM (Node Package Manager).
Select the “Recommended For Most Users” button and download the current version for your operating system.
After you download and install Node, start your terminal/command prompt and run node -v and npm -v to see which versions you have.
Your version of NPM should be at least 5.2.0 or newer because create-react-app requires that we have NPX installed. If you have an older version of NPM, run this command to update it:
npm install -g npm
What is create-react-app?
Since it is complicated and takes a lot of time, we don’t want to configure React manually. create-react-app is a much easier way which does all the configuration and necessary package installations for us automatically and starts a new React app locally, ready for development.
Another advantage of using create-react-app is that you don’t have to deal with Babel or Webpack configurations. All of the necessary configurations will be made by create-react-app for you.