Hacker News new | ask | show | jobs
by acidbaseextract 2017 days ago
I've spent a lot of time in higher-order component and render prop hell — so many layers of indirection. The declarative behavior that HOCs and render props enable is one of the best parts of React, used in libraries like react-motion. But man, debugging layers of render props makes me itch.

Hooks have been a savior for me. I agree that there are a lot of sharp edges with hooks, but they're not magic. They're powerful and they compose really well. If you're doing anything behaviorally complicated on a React app, it's easy to build whatever abstraction is appropriate to your project.