News for hackers. Stuff that matters.
Re:Frustrations with React Hooks by bhousel on Tuesday September 10, 2019 @11:48AM (#20929488)
Ah yeah, hooks are strange at first..

They didn't click for me until I read this netlify blog post: https://www.netlify.com/blog/2019/03/11/deep-dive-how-do-rea...

If you think of them as mostly just syntactic sugar for closure state variables wrapped up in the module pattern, it's not so bad. (This is how some of us have been writing D3.js code for years!)

There are no comments on this comment yet.