Search posts, tags, users, and pages
Tapas Adhikary
Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source
Nice Read, Thank You!
How do you see HOC will be used by developer with react-hook in picture?
Joseph Aje
Software Engineer
Hi Tapas. With the React Hooks API, the code reuse and optimization I highlighted can be achieved easily, and in most scenarios, more gracefully than with HOCs. HOCs are just one way to do it. At the end of the day, it all boils down to preference.
A detailed comparison is available here: medium.com/@albertchu539/higher-order-components-…