Comment

Comment by gambler

>Virtual DOM libraries provide a declarative interface to the Web’s imperative DOM.

I'm not sure what this means. DOM is an object model for HTML. It is mutable, but HTML itself is definitely declarative.

Which brings up an interesting question. Why are DOM-diffs something that is done by userland libraries when it can and probably should be done by the browser itself?

parent gambler 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton