- react
- react-router-dom
- prop-types
- 高阶组件
- fecth/axios
- redux
- react-redux
- redux-actions
- js-cookie
- react-loadable
- ES7装饰器
- style-component
- redux-thunk
- antd
yarn add react-router-dom prop-types axios redux redux-actions react-redux js-cookie react-loadable redux-thunk
基于create-react-app进行的项目搭建
- 跨域
- 别名配置
- 装饰器配置
- 按需加载配置
yarn add http-proxy-middleware
yarn add react-app-rewired customize-cra babel-plugin-import
yarn eject 是将webpack配置项报漏出来 要保证你的项目提交到版本库
yarn add @babel/plugin-proposal-decorators @babel/plugin-syntax-jsx