DEV Community

Vesa Piittinen
Vesa Piittinen

Posted on • Updated on

Components not solved by hooks?

Working with a larger codebase I haven't found yet a component I couldn't refactor from classes to hooks (when not counting the obvious error boundaries).

So do you know a use case, preferably with sample code, that cannot be done with hooks? Or that would be "too hacky" if done with hooks instead of a class.

Discussion (1)

lifeiscontent profile image
Aaron Reisman

Check out react-transition-group, Iā€™d love to see a PR with hooks!