pluscai/use-react

Reconciliation

pluscai opened this issue · 0 comments

Reconciliation

深入React的diff算法:

  • diff component的type,如果type不一样,则直接rebuild

  • 如果type一样, 再继续diff新老component及其children

目的:最大限度的减少DOM操作