- 要自己维护数据和DOM对象的一致。
- 不方便复用
- 重复代码
- 容易引起冲突
- 代码比较零散,结构不清晰
- 不方便重构
- 组件化,把一个复杂的页面分成一个一个小组件
- 模块化
npm init -y
### 生产依赖
npm install react jquery bootstrap redux react-redux react-router react-router-redux@next -S
npm install babel-core babel-loader babel-preset-es2015 babel-preset-stage-0 babel-preset-react less less-loader css-loader style-loader file-loader url-loader webpack webpack-dev-server html-webpack-plugin -D