npm install -g react-scripts
Here is what the above code is Doing:
1. Create a new directory called react-tutorial.
2. Change directory into react-tutorial.
3. Create a new file called index.html.
4. Create a new file called index.js.
5. Install the react and react-dom packages.
6. Install the babel-core, babel-loader, babel-preset-env, and babel-preset-react packages.
7. Install the webpack and webpack-dev-server packages.
8. Install the react-scripts package.