search

Home  >  Q&A  >  body text

Why does virtual dom diff algorithm use depth-first traversal?

https://github.com/livoras/bl...

Why not use breadth first? Want to know the difference?

过去多啦不再A梦过去多啦不再A梦2807 days ago814

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-05-18 10:50:54

    Visual inspection is the reason for the complexity of the algorithm

    reply
    0
  • Cancelreply