Re:Virtual DOM is pure overhead (2018)
by blacktriangle on Tuesday June 29, 2021 @12:05PM
(#27677860)
Natively no, but writing some JS code that will take an array of objects and turn it into a DocumentFragment is a trivial exercise. And once you're representing your HTML as data, looping and data binding are trivial.
[ Parent
| on HN ]
You're right. But how often do you want to rewrite that code? It may be worth accepting a few -isms (and the associated performance hit) in order to be able to write something like this instead of having to bang out the imperative version:
<BulletedList [(DataSource)]="MyCollectionProperty" />