Re:Svelte 5 is not JavaScript
by machiaweliczny on Tuesday February 18, 2025 @06:57PM
(#43096728)
What most people need is good routing solution but it’s hard to make it with SSR. Seems like frameworks are somewhat converging now on this app router concept.
Agree that JSX is great (but styles like in Svelte also).
Re:Svelte 5 is not JavaScript
by rpastuszak on Wednesday February 19, 2025 @03:26AM
(#43099890)
> Agree that JSX is great (but styles like in Svelte also).
Oh yeah, 100%. One of the reasons I like Svelte are colocated CSS modules.
> seems like frameworks are somewhat converging now on this app router concept.
That for sure, and signals in one way or another. It took us 10+ years, Solid.js then preact to bring back a pattern from 2010s (IIRC) implemented in Knockout.js.
People are talking about declarative signals in HTML. I don't have a formed opinion about them yet.
- preact w. signals or Svelte are still my libraries of choice if I need to spike something, but that's partially because of signals and vite. The development experience is good, there isn't much magic you need to deal with on a daily basis.
- Web Components are great in many ways, but they don't solve the problems I usually have with bigger projects (scaling state, orchestration for the lack of a better phrase). Lit makes it a bit better though.
- JSX is actually not that bad, as long as you treat it as a DSL around functional composition. Native JSX + signals would probably make most of my node_modules redundant.
(please don't overthink this, I didn't)