3 ms·
I don’t really understand what you’re point is? Isn’t the ‘dom is slow’ thing about comparing to e.g. - creating actual DOM elements during render and diffing
by dan-robertson 4y ago
I don’t really understand what you’re point is? Isn’t the ‘dom is slow’ thing about comparing to e.g.
- creating actual DOM elements during render and diffing that with the DOM, or
- using the existing DOM as the thing being diffed against your new vdom (slow because calling into the browser many times may be slow and you need to check eg there aren’t attributes to be removed from your elements)
Perhaps it’s also necessary to mention that the main point of vdom was to allow react to offer the API it does performantly but maybe with compiler-based solutions like svelte that isn’t necessary. Lots of people still use react, however.
- deleted 4y ago[deleted]