---
title: "Comment by Tapas Adhikary on \"Demystifying Higher-Order Components (HOCs)\" | Hashnode"
description: "Nice Read, Thank You! How do you see HOC will be used by developer with react-hook in picture?"
url: "https://hashnode.com/posts/demystifying-higher-order-components-hocs/5d3c63184d97b7262a1d9887/comment/5d3ef0cb198d23a137b9a5eb"
---

[Discussion](https://hashnode.com/posts/demystifying-higher-order-components-hocs/5d3c63184d97b7262a1d9887)

Comment [Demystifying Higher-Order Components (HOCs)](https://hashnode.com/posts/demystifying-higher-order-components-hocs/5d3c63184d97b7262a1d9887)

[Tapas Adhikary](https://hashnode.com/@atapas)

[Jul 29, 2019](https://hashnode.com/posts/demystifying-higher-order-components-hocs/5d3c63184d97b7262a1d9887/comment/5d3ef0cb198d23a137b9a5eb)

Nice Read, Thank You!

How do you see HOC will be used by developer with react-hook in picture?

[Joseph Aje](https://hashnode.com/@ajejoseph)

[Jul 30, 2019](https://hashnode.com/posts/demystifying-higher-order-components-hocs/5d3c63184d97b7262a1d9887/comment/5d3ef0cb198d23a137b9a5eb#reply-5d40c947b59ff2cb51d25d51)

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-…](https://medium.com/@albertchu539/higher-order-components-in-a-react-hooks-world-69fe1f0b0791)
