- react
- react-router-dom
- prop-types
- redux
- react-redux
- redux-thunk
- whatwg-fetch
- redux-actions
- styled-components
- 高阶组件
- react-loadable
- qs
- js-cookie
- antd-mobile
yarn add react-router-dom prop-types redux react-redux redux-thunk whatwg-fetch redux-actions styled-components react-loadable qs js-cookie antd-mobile
环境搭建 create-react-app
- react-app-rewired
- customize-cra
- babel-plugin-import
- http-proxy-middleware
yarn add react-app-rewired customize-cra babel-plugin-import http-proxy-middleware --dev
装饰器的使用
- @babel/plugin-proposal-decorators
- react-scripts
- @babel/plugin-syntax-jsx
- @babel/helper-create-regexp-features-plugin
- 详情看alley bokeyuan
yarn add @babel/plugin-proposal-decorators react-scripts @babel/plugin-syntax-jsx @babel/helper-create-regexp-features-plugin --dev
redux-devtools-extension
yarn add redux-devtools-extension