Hacker News new | ask | show | jobs
by tracker1 2796 days ago
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.

1 comments

I don't know what you mean by pure. There is nothing reverentially transparent about the new API. (Nor can there be, really.)
And nothing that requires you to use the new API.