4 ms·
It's not automatic though. Theres function calls() and you must createSignal for every derived value. When you ignore the performance aspect, React has the obj
by SebastianKra 1y ago
It's not automatic though. Theres function calls() and you must createSignal for every derived value.
When you ignore the performance aspect, React has the objectively least amount of boilerplate for reactivity.
The question, that I genuinely don't know the answer to, is a) whether the performance improvement is worth it, and b) whether that's still the case after the compiler.
- gcr 1y agohang on, least compared to what? other frameworks (eg. VueJS, especially older versions) have less boilerplate than react
- alserio 1y agohave you tried svelte 3/4?
- SebastianKra 1y agoSvelte: let doubled = $derived(count * 2); React: const doubled = count * 2
- codedokode 1y agoReact is the most inefficient in terms of performance (after imgui); it recomputes everything on every event like mousemove. It was probably made for simple forms with tens of variables.
- alserio 1y agoI explicitly said svelte 3 and 4, while runes have they pro and I appreciate them, svelte was terser before.
- SebastianKra 1y agoOh sry, I thought Svelte introduced runes in v4, not 5. I find it pointless to argue about old versions of Svelte and Vue, when their drawbacks have already been addressed by their own creators [^1]. [^1]: https://svelte.dev/blog/svelte-5-is-alive https://svelte.dev/blog/svelte-5-is-alive