Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

[英] 深入理解React源码-界面更新(DOM树)IX

$
0
0

https://holmeshe.me/understanding-react-js-source-code-virtual-dom-diff-IX/

Last time we went through the process from setState() to the updating of a single DOM. We also analyzed the diffing algorithm, which is far from complete as the algorithm is designed for tasks that are much more complex than updating a single DOM node.

This time we are going to use two examples to examine the diffing algorithm more in depth. More specific, we look at how the algorithm deals with a mutating DOM tree. …


Viewing all articles
Browse latest Browse all 14821

Trending Articles