Hacker News new | ask | show | jobs
by drinchev 2783 days ago
Is there any benefit of using hooks with stateless components versus just having a class component?

Can't reusability come via abstract components, instead of hooks?

1 comments

I think this article does a pretty nice job breaking down the benefits: https://medium.com/@dan_abramov/making-sense-of-react-hooks-...

I was pretty skeptical at first, and perfectly happy with the render props pattern, but after using hooks for a few weeks I'm liking it much better.