基于create-react-app创建的项目环境 react-app-rewired 对create-react-app进行自定义配置
环境相关依赖
- react-app-rewired
- customize-cra
- babel-plugin-import
yarn add react-app-rewired customize-cra babel-plugin-import --dev
- 高阶组件
- react-router-dom
- redux
- react-redux
- redux-actions
- redux-thunk
- whatwg-fetch
- react-loadable
- qs
- styled-components
yarn add react-router-dom redux react-redux redux-actions redux-thunk whatwg-fetch react-loadable qs styled-components