just-react icon indicating copy to clipboard operation
just-react copied to clipboard

「React技术揭秘」 一本自顶向下的React源码分析书

Results 67 just-react issues
Sort by recently updated
recently updated
newest added

按照原来文章中的FunctionComponent组件形式,走的应该还是Single Element的逻辑。

这块更新被执行两次的应该是 u1 而不是 u2 吧

react-reconciler 0.26.1 react 17.0.3

![image](https://user-images.githubusercontent.com/30741263/118440360-24d67800-b71a-11eb-9337-46514bc9b63e.png) ![image](https://user-images.githubusercontent.com/30741263/118440845-da093000-b71a-11eb-886c-de80e3aa4e17.png) 这里的堆排序每次push或pop调整,都是O(logN)吧?

小书原文描述位置:https://react.iamkasong.com/process/completeWork.html#effectlist react官方commit更改信息:[Remove remaining references to effect list #19673](https://github.com/facebook/react/pull/19673) We no longer use the effect list anywhere in our implementation. It's been replaced by a recursive traversal in the commit phase....

中间部分解释有点晦涩难懂,我觉得这样解释会好一点

react 为什么使用深度优先遍历构建fiber树 而不是广度优先呢