How to Use React Higher-Order Components
Utilise React HOCs for class and functional components
9 min readApr 4, 2019
Higher-Order Components (or HOCs) in React are functions that take a component and return a new component, enhancing the original in some way:
const EnhancedComponent = hoc(OriginalComponent);