It’s time I jump into the React development world with both feet. First question, of course, is “How do I set up a React development environment?”
I found the following steps:
- First, install node.js. I found out how to do that over here on this page. Visit the node.js site, download a .pkg file (I’m on a Mac) and run it.
- npm is included in node.js. But we want to update it to the latest version. Do so with the following command:
sudo npm install npm -g
- Install an node.js application that will create your React application project. Use the following command to accomplish this:
sudo npm i create-react-app -g
- Now use a node.js app to create your application. To do so, cd into the directory in which you want to create your project’s directory. Then type: