React Web淘宝 React 框架
淘宝前端团队开源项目React Web,通过与React Native一致的API构建Web应用。
配置:
// webpack.config.js var HasteResolverPlugin = require('haste-resolver-webpack-plugin'); module.exports = { resolve: { alias: { 'react-native': 'react-web' } }, plugins: [ new HasteResolverPlugin({ platform: 'web', nodeModules: ['react-web'] }) ] }
评论