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

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

Results 74 just-react issues
Sort by recently updated
recently updated
newest added
trafficstars

【状态更新】-【流程概览】-【几个关键点】 新增:【批量更新】 出发点:批量更新虽然不是主流程,但是其对于更好的理解调度的过程起到了一定作用

首先感谢大佬的教程,详细,对新手真的太友好了,如果出书了我马上下单。 这里我尝试了一下,在第一章中的拉取源码就卡住很久了,我花费了半天,也没能从 GitHub 上把 react 源码拉下来,后来我突然想到码云有很多镜像,尝试之后发现速度真的快,所以推荐码云镜像作为国内下载地址,这个镜像在地址是: ``` https://gitee.com/mirrors/react ```` 我的环境: - 南方联通 - 代理和cnpm均尝试 作为小白最怕这样一开始卡住,这里感谢一下码云😝

The two component demos in page `/preparation/idea.html` of vue and react are absolutely different. How should they be compared in that case? What a react component similar to the vue...

作者这里[https://react.iamkasong.com/process/beginWork.html#effecttag](https://react.iamkasong.com/process/beginWork.html#effecttag)说RootFiber在mount阶段就会有alternate的原因在[双缓存那一节](https://react.iamkasong.com/process/doubleBuffer.html#%E5%8F%8C%E7%BC%93%E5%AD%98fiber%E6%A0%91),究竟是什么原因,为什么我没有找到🥶

[https://react.iamkasong.com/process/reconciler.html#%E4%BE%8B%E5%AD%90](url) 看图上所示的每个component都会执行到beginWork和completeWork,但实际上并不是这样的 completeWork只有在child没有的时候才会执行,然后找到fiber树上一个有slibing的组件执行beginWork 这样并不是所有组件都会有completeWork 尝试打印了下自己的代码大概如下 beginWork App scheduler.development.js:468 beginWork RecoilRoot scheduler.development.js:468 beginWork RecoilRoot_INTERNAL 2scheduler.development.js:468 beginWork undefined scheduler.development.js:468 beginWork Batcher scheduler.development.js:468 completeUnitOfWork Batcher scheduler.development.js:468 beginWork GlobalThemeProvider scheduler.development.js:468 beginWork undefined scheduler.development.js:468 beginWork...

Dan 的博客中这一段通过通俗的方式讲解了 react 进行 reconciliation 的过程