2 ms·
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).
by sampullman 2y ago
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).
- pier25 2y agoYou 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.