News for hackers. Stuff that matters.
Re:My Reaction to React by localvoid on Wednesday January 27, 2016 @10:49PM (#10986096)
>Let's be clear, manually updating the DOM is as optimized as you can possibly be. Virtual-DOM isn't somehow magically more efficient than direct, imperative manipulation of the DOM.

The actual problem is how to efficiently traverse/modify DOM structure, in the end you'll just reimplement virtual dom.

Re:My Reaction to React by marknutter on Wednesday January 27, 2016 @11:02PM (#10986151)
Well, no, not really. You will only replace/update the elements that you need to which is pretty much what vdom boils down to. It's just tedious, is all.
Re:My Reaction to React by localvoid on Wednesday January 27, 2016 @11:14PM (#10986219)
In a real application, you'll need to deal with moving elements, document shape will be changing, etc. Trying to solve this cases is the most complicated part of vdom libraries. If you try to do naive replace/update, it will be significantly slower.