DEV Community


Components not solved by hooks?

Vesa Piittinen
User centric frontend specialist between "normal" programming and design. Loves perf and minimalism. Prefers HTML, CSS, Web Standards over JS, UX over DX. Hates div disease.
Updated on ・1 min read

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!