前端框架选择
GitHub Star 60635 (2017.2.26)
Example
Example
Life Cycle
React只负责UI部分
程序状态如何维护?
Store
程序如何操作Store中的数据?
GitHub Star 29455 (2017.2.26)
相关开发者工具
相关开发者工具
打包方案
Farewell seajs!
Hello webpack2!
node v6.9.5
Entry
Output
Loaders
Plugins
const webpack = require('webpack'); //to access built-in plugins
const path = require('path');
const config = {
entry: './path/to/my/entry/file.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'my-first-webpack.bundle.js'
},
module: {
rules: [
{test: /\.(js|jsx)$/, use: 'babel-loader'}
]
},
plugins: [
new webpack.optimize.UglifyJsPlugin()
]
};
module.exports = config;Example
开发流程方案
Farewell JDF!
Hello npm scripts!
开发流程方案
组件复用方案
Farewell copy/paste!
组件复用方案
Hello npm.jd.com!
你说的这么好,不是要配置各种环境么?
我就想逃过一切繁琐的配置,直接开发业务代码
webpack文档复杂,可是出了名的啊。。
干货时间
干货时间
通用UI组件
干货时间
一些思考
jQuery is dead, long live React/Vue/AngularJS???
一些思考
webpack
单元测试
npm scripts
参考资料