Re:TodoMVC App Written in Vanilla JavaScript
by Philip-J-Fry on Saturday May 07, 2022 @11:01AM
(#31295053)
The point is that A) that's a framework and B) that requires you to compile Svelte files.
If you want to write declarative UI in pure JS then you need the browser to do these DOM optimisations for you, and diffing the changes is the way to do that.
If you want to write declarative UI in pure JS then you need the browser to do these DOM optimisations for you, and diffing the changes is the way to do that.