News for hackers. Stuff that matters.
Re:Svelte 4 by civilitty on Thursday June 22, 2023 @01:29PM (#36435695)
I'd argue that Svelte is less opinionated than React in most areas. The whole hook system depends on a ton of hidden state that React manages itself.

Svelte state management, for example, is just the `subscribe(callback: () => void) => Unsubscriber` interface. A couple of utility store functions are provided like `writable` and `derived` but state management libraries don't need to know anything about Svelte, just provide that single life cycle method. The context API looks almost exactly like React's.

There are no comments on this comment yet.