2 ms·
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
by tracker1 8y 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.
- AlexCoventry 8y agoI don't know what you mean by pure. There is nothing reverentially transparent about the new API. (Nor can there be, really.)
- tracker1 8y agoAnd nothing that requires you to use the new API.