High-order components (Hoc) is an advanced technique used to reuse component logic in React. Hoc itself is not part of the React API, but rather a design pattern based on React’s combinatorial features.
In particular, a higher-order component is a function that takes an argument to a component and returns a value to the new component.
Components convert props to UI, and higher-order components convert components to another component.
const EnhancedComponent = higherOrderComponent(WrappedComponent);