一个基于create-react-app的react脚手架。已配置路由、axios、antd、scss、immutable、全局状态管理、按需加载、代码分割。
npm start
npm run build
- 项目未使用第三方状态库,全局状态管理由
context
实现 useEnhanceReducer
与useReducer
用法相同,仅增加支持异步action- 项目已引入
immutable
库,建议使用 - 国际化使用
react-intl
库,建议优先使用自定义hookuseFormatMessage
作为翻译api
项目兼容ie11.
调试ie需要在package.json
文件browserslist.development
添加ie 11
并重启应用。
note: 配置未生效可尝试删除node_modules/.cache
目录并重启