create-react-app 创建项目

打开config配置  如果是已经上传到git上去 就不需要 输入git命令了 直接运行就可以

git init

git add

git commit -m 'init'

npm run eject  

配置less 百度上就有

 "less": "^3.13.1",
 "less-loader": "^11.0.0",
 

路由创库配置

npm i react-router-dom

npm install react-redux

npm install --save redux-saga

npm install @reduxjs/toolkit react-redux

"react-router-dom": "^6.3.0",
"react-redux": "^7.2.6",
"redux-saga": "^1.1.3",
"@reduxjs/toolkit": "^1.8.2",
 
 
 
 
posted on 2022-05-25 17:10  假装新手  阅读(67)  评论(0编辑  收藏  举报