by janci · 4y ago · 0 comments
Now that Internet Explorer is really deprecated and DOM are fast enough in every browser, VDOM is not necessary.
And VDOM just writes to the DOM in addition to doing a lot of other throwaway work and allocations.
Reading from DOM may be slow, if you read one of the properties that would trigger layout/style calculactions.
I've written this library [1] as a clean reimplementation of a more complex beast we created for a (now dead) startup. Although the reimplementation has only seen very light use, we've used the concept extensively, and it's a joy to use. Take a look at the examples [2].
[1] https://github.com/vanviegen/aberdeen [2] https://github.com/vanviegen/aberdeen/tree/master/examples