Skip to content

Comment on Demystifying React's Virtual DOMparent

Comments

Well, obviously it's always faster if a developer carefully crafts the minimal possible DOM changes by hand, than letting an automatic system to decide on it - but updating one label isn't a very realistic situation. Usually one will need to do a dozen of changes at once all over the page, and for maintainability (and keeping the sanity) reasons devs usually do it in some sort of batch operations. And that's where react, vue, angular, etc. have proven to be superior approach for anything but simplest apps.

Actually not true - browsers already batch DOM change repaints.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.