by luketheobscure · 3y ago · 0 comments
> True to its de-facto tagline, change detection in React is “just JavaScript.”
Then in the example, the author updates a variable with `setCount(count - 1)`. That's not "just JavaScript". Just JavaScript would be `count = count + 1`.
This isn't to make any kind of judgement on either approach though, I personally really enjoy the DX that Svelte offers.