How to install and use React

1. Install react Use the command cnpm i create-react-app -g to install globally
2. Assuming that there is a problem during the installation process, ctrl+c can directly end the reinstallation. If it is too slow, you can check whether your npm is a Taobao mirror, because React is an overseas server. If you use npm to install, it may be very slow.
3. How to create a project create-react-app project name for example: create-react-app myapp
4. cd into the project directory,
5. Then execute npm start in the project directory to run it

Guess you like

Origin blog.csdn.net/ni15534789894/article/details/112556702