-
Redux状态管理 - @reduxjs/toolkit 、 react-redux
-
react-router-dom: 路由
-
antd-mobile: 移动端组件库
-
axios:请求插件
-
dayjs: 时间处理
-
classnames: class类名处理
-
Lodash:遍历数据等 地址→
-
CRACO:配置别名路径等,下载后添加craco.config.js文件,类似VUE的vue.config.js地址→
"scripts": {
"start": "craco start & json-server ./server/data.json --port 8888", //⭐craco
"build": "craco build", //⭐craco
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"dependencies": {
"@reduxjs/toolkit": "^1.9.2",
"antd-mobile": "^5.26.0",
"axios": "^1.3.2",
"classnames": "^2.3.2",
"lodash": "^4.17.21",
"dayjs": "^1.11.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.26.1",
"react-redux": "^8.0.5",
"react-scripts": "5.0.1", //⭐craco
},
"devDependencies": {
"@craco/craco": "^7.1.0", //⭐craco
"json-server": "^0.17.2",
"sass": "^1.56.1"
}