Getting Started with React
- Install Node.js locally by downloading it from https://nodejs.org/en/download/
- From the Terminal, Command Prompt, etc. update Node Package Manager by typing the command: npm install npm –g
- Install the create-react-app package by typing the command: npm install –g create-react-app
- Create a new folder or directory for your project, then navigate to it using Terminal, Command Prompt, etc.
- Create the project by typing the command: create-react-app lists
- This will create a “lists” directory and install the default React app there. You can start it by changing to the “lists” directory and typing the command: npm start
- You should then be able to access http://localhost:3000 using your web browser and see the default React app. If so, you’re ready to proceed.
Sample view: