Skip to content

fuzzy-lee/react-app-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-app-skeleton

一个基于create-react-app的react脚手架。已配置路由、axios、antd、scss、immutable、全局状态管理、按需加载、代码分割。

启动

npm start

构建

npm run build

一些说明

  1. 项目未使用第三方状态库,全局状态管理由context实现
  2. useEnhanceReduceruseReducer用法相同,仅增加支持异步action
  3. 项目已引入immutable库,建议使用
  4. 国际化使用react-intl库,建议优先使用自定义hookuseFormatMessage作为翻译api

IE兼容

项目兼容ie11.

调试ie需要在package.json文件browserslist.development 添加ie 11并重启应用。

note: 配置未生效可尝试删除node_modules/.cache目录并重启

About

一个基于create-react-app的react脚手架

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published