News for hackers. Stuff that matters.
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.
Re:Migrating from Vue 2 to Svelte by swyx on Friday December 02, 2022 @01:22AM (#33827462)
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
Re:Migrating from Vue 2 to Svelte by swyx on Friday December 02, 2022 @01:45AM (#33827626)
cool. any blessed scoped styling solution or is it the usual wild west?
Re:Migrating from Vue 2 to Svelte by hakre on Friday December 02, 2022 @01:50AM (#33827658)
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.
Re:Migrating from Vue 2 to Svelte by hakre on Friday December 02, 2022 @01:53AM (#33827676)
> 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.

https://www.solidjs.com/docs/latest/api#stores

Re:Migrating from Vue 2 to Svelte by ptrwis on Friday December 02, 2022 @09:03AM (#33830513)
For animations, the standard Web Animation API is very convenient. From what I can see, the animation library in Svelte looks pretty similar.
Re:Migrating from Vue 2 to Svelte by hakre on Friday December 02, 2022 @01:02AM (#33827353)
At least it was on top within the timeline-strings-percentage-bubbles graphic.

And as the latest and greatest omnipotent entry in it, so my guess would be theirs authors were aware of it.