4 ms·
Why virtual DOM is not a part of browser APIs is anyone’s guess at this point.
by dmitriid 8y ago
Why virtual DOM is not a part of browser APIs is anyone’s guess at this point.
- MrEldritch 8y agoIt is! They call it the DOM, for short.
- dmitriid 8y agoI mean virtual DOM as exemplified by virtual-dom, hyperscript, React.
- lootsauce 8y agoUh no, actually virtual DOM would be a great addition to the browser. What is there is an imperative api, the big win of virtual DOM is the specification of the UI is the specification of all possible updates to the ui in an efficient manner. It would be nice for the browser to include an api method that takes VDOM data-structure, diffs it and applies the changes in native land vs implementing this in user land.
- Zooper 8y agoBecause it's an inefficient hack and native APIs could improve upon the way in which it operates to such a degree that it would no longer be called the virtual DOM?