DEV Community

Discussion on: Refactoring Higher-Order Components (HOC) to React Hooks

Collapse
 
chrisachard profile image
Chris Achard

Nice overview! You've hit on one of the places that I think hooks are much more understandable (especially for beginners!) - because I've seen HOCs cause a lot of confusion.

Also: I never realized that github had an api like that! (of course it does though 😄) - but that's a great api to use for demos; thanks!

Collapse
 
gethackteam profile image
Roy Derks

Thank you! Yes HOC are often hard to get when you just started with React

Collapse
 
wierdorohit123 profile image
rohit raut

Thanks Roy it was a great!!! Article