News for hackers. Stuff that matters.
Re:Rich Harris joins Vercel to work on Svelte full time by marstall on Friday November 12, 2021 @09:25PM (#29206828)
agreed. transition from classes to hooks and useEffect was confusing at first but it now seems very predictable and sensible (does get a little hairy when you have one effect dependent on another).

just started writing my own named effects (eg useAuth() for encapsulating firebase auth) and still in a bit of an uncanny valley with doing that - but again it's very logical once you get used to it and actually in the end a simpler mental model of component state.

never want to go back.

junior devs, start with useState, it'll all flow from there.

There are no comments on this comment yet.