DEV Community

Vesa Piittinen
Vesa Piittinen

Posted on • Edited on

1

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.

Top comments (1)

Collapse
 
lifeiscontent profile image
Aaron Reisman

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

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay