3 ms·
There is one thing that Svelte isn't is simple javascript. It is not even javascript, the files are named .svelte for a reason. Svelte is great but I won't be c
by meiraleal 3y ago
There is one thing that Svelte isn't is simple javascript. It is not even javascript, the files are named .svelte for a reason. Svelte is great but I won't be changing React for something so similar but without vdom. Lit.dev is where the real simplicity of JavaScript shines imo.
- alternatex 3y agoVirtual DOM offers nothing but slowness. If I can get the same things without it why would I need it. It's a solution to a problem compilers like Solid and Svelte don't have so it's so odd to see someone argue for it. Like complaining a about missing dependency injection in a functional language.
- tcfhgj 3y agoIsn't DI a core principle in functional programming?
- fullstackchris 3y agothe alternative is a global query / state management / whatever against the entire DOM tree - much less performant and exactly WHY the virtual dom was invented
- dbrueck 3y agoThe files are named '.svelte' because each one encapsulates the relevant Javascript, HTML, and styles. But why do you want the vdom exactly? Like, what does it give you? Seems like its presence is more an implementation detail of a framework than something a user of the framework would want, no?