News for hackers. Stuff that matters.
Re:Making SetInterval Declarative with React Hooks by danabramov on Monday February 04, 2019 @05:03AM (#19075126)
>I struggle to grok what hooks do that I was missing before.

I wrote about this too:

https://medium.com/@dan_abramov/making-sense-of-react-hooks-...

Hope it helps.

As another commenter note, the OP article discusses the pathological case. An API can make a hundred cases simpler but discussions will always focus on the few ones that got harder. The point of this post is to show how to work through this case and why the _end result_ is more flexible and powerful than before.

Re:Making SetInterval Declarative with React Hooks by Waterluvian on Monday February 04, 2019 @05:48AM (#19075292)
Thanks. Generally speaking my mindset is that the benefits will become clear in time, or they will be leveraged by others and invisible to my everyday use. But my final point still stands: the win with how React is evolving is that I can completely ignore these new features for a short/long/infinite amount of time and not be in trouble.