react 集成开发框架
- 使用知识点: * react
- webpack 前端自动话打包工具
- react-router-dom
- react-redux
- redux
- babel
项目webpack 优化说明文档
http://blog.seosiwei.com/detail/9
react-router的4种异步加载方式
http://blog.seosiwei.com/detail/10
项目步骤
1.安装node.js
2.安装项目依赖包
npm install
或
yarn install
3.运行开发环境
npm run dev
4.打包生产文件
npm run build
https://flow.org/
flow使用请参考官网:使用flow检查的文件在顶部增加
// @flow 或者 /* @flow */ 标识
检查全部文件
npm run flow check --all