本系列源码学习,是基于 v16.13.1,v17.x与v16.x区别并不太大!
The easiest way to try your changes is to run yarn build react/index,react-dom/index --type=UMD and then open fixtures/packaging/babel-standalone/dev.html. This file already uses react.development.js from the build folder so it will pick up your changes.
最简单的方法就是先 git 下载 react 官方源码,然后编译成 UMD 库,再使用
fixtures/packaging/babel-standalone/dev.html,这个文件默认使用react.development.js
我们可以修改react源码,然后build,再打开/刷新dev.html(也可以自己demo),就能学习了。
Dan Abramov 最近在 JSConf 上对 React 未来的一些新特性的介绍 - Beyond React 16(墙)
喜欢的朋友记得点赞、收藏、关注哦!!!