Do React Hooks Replace Higher Order Components (HOCs)?

1 · Eric Elliott · July 31, 2019, 2:20 a.m.
Since the React hooks API was introduced, a lot of questions have risen about whether or not React hooks will replace other common libraries and patterns in the React+Redux ecosystem.Hooks were designed to replace class and provide another great alternative to compose behavior into your components. Higher Order Components are also useful for composing behavior. There is some obvious overlap, so do React hooks replace Higher Order Components? It’s pretty clear that they can replace some HOCs. But...