News for hackers. Stuff that matters.
Re:The Cost of Frameworks by munro on Tuesday November 17, 2015 @04:31PM (#10584096)
It's no surprise that mutating data structures is cheap, and React's virtual DOM doesn't aim to solve expensive layout calculation.

What virtual DOM does is simplify application development by removing the concept of time, so the programmer doesn't have to think about how to mutate the existing state to get to the new state. It's the cheapness of creating new virtual nodes that's interesting [1], and quickly applying them to the DOM with diffing.

[1] https://jsperf.com/virtual-dom-vs-real-dom

There are no comments on this comment yet.