News for hackers. Stuff that matters.
Re:Introducing Hooks by tracker1 on Thursday October 25, 2018 @08:16PM (#18305786)
There are other ways to approach an issue beyond shoving everything into a class. I'm not sure I really like the new hooks over the state methods at that level since I tend to separate global state (redux) vs component state (class) vs component state rendering (functional component).

In the end it depends on your style. I think this might be useful in a way that can be more pure than some other methods might be.

Re:Introducing Hooks by AlexCoventry on Thursday October 25, 2018 @11:25PM (#18306542)
I don't know what you mean by pure. There is nothing reverentially transparent about the new API. (Nor can there be, really.)
Re:Introducing Hooks by tracker1 on Sunday October 28, 2018 @07:39PM (#18323915)
And nothing that requires you to use the new API.