top | item 45646279

(no title)

SebastianKra | 4 months 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.

discuss

order

gcr|4 months ago

hang on, least compared to what? other frameworks (eg. VueJS, especially older versions) have less boilerplate than react

alserio|4 months ago

have you tried svelte 3/4?

SebastianKra|4 months ago

Svelte:

  let doubled = $derived(count * 2);
React:

  const doubled = count * 2