React create-react-app build (npx)

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

Insert image description here
Insert image description here
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
Insert image description here
4. Enter the project address in the browser to access
Insert image description hereThen you can happily start your project React journey hehehehehe~

Guess you like

Origin blog.csdn.net/qq_41497443/article/details/122471411