4 ms·
I find class-based components work better for some things, mainly that need to manage complicated lifecycles that hooks do a pretty bad job of.
by rkeene2 4y ago
I find class-based components work better for some things, mainly that need to manage complicated lifecycles that hooks do a pretty bad job of.
- bayesian_horse 4y agoI recommend useReducer, if you can't use Redux. Yes, it works with non-serializable objects (evenrefs if you must).