3 ms·
Instead of vDOM, solid.js uses <template> - real DOM elements + cloneNode(). And that's doubtful decision. Each live DOM element is about 100-200 bytes in memo
by c-smile 5y ago
Instead of vDOM, solid.js uses <template> - real DOM elements + cloneNode().
And that's doubtful decision. Each live DOM element is about 100-200 bytes in memory.
While in React (PReact, Mithril) this JSX expression:
<div>a</div>
is this:
["div",{},["a"]]
5 or so times less.
In other words: needs to be tested on large DOM structures.
- infensus 5y agoThat's just a component template though. When you produce large DOM trees, you usually do so by rendering your components a lot of times, not by having a lot of different components