Step to create first React App
Step 1: In order to learn and test React, you should set up a React Environment on your computer.
Step 2: The create-react-app is an officially supported way to create React applications.
Step 3: If you have NPM and Node.js installed, you can create a React application by first installing the create-react-app.
Step 4: Install create-react-app by running this command in your terminal:
Step 5: You are now ready to create your first React application!
Step 6: Run this command to create a React application named myfirstreact:
The create-react-app will set up everything you need to run a React application
Run the React Application
Step 1: Run this command to move to the myfirstreact directory:
cd myfirstreact
npm start
Step 2: A new browser window will pop up with your newly created React App!
If not, open your browser and type localhost:3000 in the address bar.