React installation and project construction

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

wWN1II.png

Then wait five minutes to install it_

wWaqVH.png

Then we run

Enter the project, then run it!

cd helloworld
npm start

Then it opened in the browser~

wWBnQP.png

Guess you like

Origin blog.csdn.net/weixin_44338712/article/details/108755086