React create-react-app build (npx)
1.node.js environment (self-installation and configuration)
2. Install the create-react-app scaffolding globally and then use the scaffolding to create a new react project
npm install -g create-react-app
create-react-app youreactproject
Or use npx directly to build a react scaffolding project (recommended)
npx create-react-app youreactproject
Seeing happy hacking means the scaffolding project was successfully built!
3.cd into the project directory
cd C:\react\myreact
and then execute
npm start
After the execution is completed, successfully appears, indicating success
4. Enter the project address in the browser to access
Then you can happily start your project React journey hehehehehe~