While virtual DOM reduces DOM updates, it is also pure overhead as we need to diff at every step.
This is why svelte.dev/ is very exciting. It is not a framework, but a compiler. It will generate the js that will update the DOM directly without needing any diff.
Like vue1.x? it means every DOM has a watcher instance, when state changed,the deps call the notify method to call all of the watchers to update the dom
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
While virtual DOM reduces DOM updates, it is also pure overhead as we need to diff at every step.
This is why svelte.dev/ is very exciting. It is not a framework, but a compiler. It will generate the js that will update the DOM directly without needing any diff.
Like vue1.x? it means every DOM has a watcher instance, when state changed,the deps call the
notify
method to call all of the watchers to update the dom