pluscai opened this issue 4 years ago · 0 comments
深入React的diff算法:
先diff component的type,如果type不一样,则直接rebuild
diff
rebuild
如果type一样, 再继续diff新老component及其children
目的:最大限度的减少DOM操作