React installation and project construction
There are many ways to use react, here I choose to install react app, just run the following command
cnpm install -g create-react-app
Then create the project (under your workspace folder, where helloworld is the project name)
create-react-app helloworld
Then wait five minutes to install it_
Then we run
Enter the project, then run it!
cd helloworld
npm start
Then it opened in the browser~