Re:Migrating from Vue 2 to Svelte
by zenbai on Friday December 02, 2022 @12:57AM
(#33827327)
Solid JS is what I would have chosen. Not sure if they considered it. Best performance and dev experience with least 'magic' of all frameworks I've tried.
[ Parent
| on HN ]
what do you like about the dev experience? i have a hard time seeing solid as something more than “react but faster and slightly less annoying”. still doesnt have proper styles, animation, state mgmt, head management, etc
Re:Migrating from Vue 2 to Svelte
by jakelazaroff on Friday December 02, 2022 @01:34AM
(#33827545)
They recently released a beta of SolidStart, their answer to Next.js/SvelteKit/Remix, etc, and I’ve been really liking it. A lot of good ideas pulled from the other frameworks. https://www.solidjs.com/blog/introducing-solidstart
cool. any blessed scoped styling solution or is it the usual wild west?
wild west? as far as CSS is concerned the cascade should be well known and for scoping its (in order of preference):
1. user 2. client 3. document
and within document its in "components", but those are unknown from the start so we defer the details (which must not but can lead to "wild west"). programming is hard, thought. would love to have that holy grail solved, too (apart from the famous three column layout).
Re:Migrating from Vue 2 to Svelte
by jakelazaroff on Friday December 02, 2022 @09:34AM
(#33830890)
CSS module works out of the box.
> i have a hard time seeing solid as something more than “react but faster and slightly less annoying”.
Err, I'd have a hard time not to see that as a major benefit first of all?
Re:Migrating from Vue 2 to Svelte
by richeyryan on Friday December 02, 2022 @05:35AM
(#33828824)
Solid does have state management. Its state management primitives can be used outside components and can even be used completely on their own, and its stores are fairly similar to Svelte stores.
For animations, the standard Web Animation API is very convenient. From what I can see, the animation library in Svelte looks pretty similar.