25 ms·
React fanboy chiming in to say... an interesting approach to what is probably a problem. i wonder, though, if compilation is really better than creating a libr
by catshirt 10y ago
React fanboy chiming in to say... an interesting approach to what is probably a problem.
i wonder, though, if compilation is really better than creating a library? if we look at the REPL output [0], we can see what comprises the bones of a Svelte component, and how much generated code will be replicated.
it also shows that the more interesting part here is it's method for rendering. it's use of data binding and compilation means we don't really need something like VDOM to stay efficient (at least, not a VDOM running in the browser).
[0] https://svelte.technology/repl/?gist=0ed5146aa22c28410dfcff2050f3d2f8 https://svelte.technology/repl/?gist=0ed5146aa22c28410dfcff2...