Skip to content
This repository was archived by the owner on May 7, 2022. It is now read-only.

3.2.0

Compare
Choose a tag to compare
@hyy1115 hyy1115 released this 28 Sep 00:36
· 96 commits to master since this release

一个新的版本

升级内容:

1、React和React-Dom打包压缩后的总体积由147KB => 116KB

2、React16更新变化请看官方文档:https://facebook.github.io/react/blog/2017/09/26/react-v16.0.html

3、新增preact支持,如果你觉得preact的兼容性不好,可以切换回react,只需要删除webpack.config的alias的几行配置。

 'react': isPro ? 'preact-compat/dist/preact-compat' : 'react', //如果你不想要preact,可以删除这一行
'react-dom': isPro ? 'preact-compat/dist/preact-compat' : 'react-dom', //如果你不想要preact,可以删除这一行
'create-react-class': 'preact-compat/lib/create-react-class' //如果你不想要preact,可以删除这一行