The react installation dependency commands are: 1. "cnpm install react-router-dom --save" command; 2. "npm install sass-loader node-sass --save-dev" command; 3. " npm install less less-loader --save-dev" command.
The operating environment of this tutorial: Windows 10 system, react18.0.0 version, Dell G3 computer.
What is the dependency command for react installation?
Summary of react installation dependency commands
The following are some of the dependencies and installation commands that are commonly used in react projects (not complete yet, will be slow) Slowly add)
1. Router-routing
Installation: cnpm install react-router-dom --save
2. sass
Installation: npm install sass-loader node-sass --save-dev
3, less
Installation: npm install less less-loader --save-dev
Recommended learning: "react video tutorial"
The above is the detailed content of What are the dependency commands for react installation?. For more information, please follow other related articles on the PHP Chinese website!