←back to thread

Svelte 5 Released

(www.npmjs.com)
390 points begoon | 2 comments | | HN request time: 0.444s | source
Show context
pier25 ◴[] No.41892888[source]
I've been using Svelte since v3 was released almost daily. I've been using v5 for the past couple of weeks and it's fantastic.

The biggest improvement IMO is that you can now write reactive logic intuitively outside your components and it just works without needing to use complex machinery or patterns like Mobx, Redux, or Vuex.

I've been doing frontend since the 90s and used everything under the sun. Svelte 5 is the most pragmatic and elegant solution I've ever used.

replies(2): >>41892944 #>>41894361 #
1. sampullman ◴[] No.41894361[source]
You can use reactivity outside components in Vue without Vuex, I don't find it to be much less intuitive than Svelte (which is also nice, don't get me wrong).
replies(1): >>41897585 #
2. pier25 ◴[] No.41897585[source]
You can but it's nowhere near as elegant and natural.

Vue exposes ref(), .value, etc which personally I find to be just cognitive overhead.

With Svelte 5 you just use $state and don't need to care about the implementation details. Furthermore, thanks to the compiler approach, your Svelte code is not coupled with an internal API anymore.