Higher Order Components
suggest changeVersions
Documented against React 15.0.0 through 15.5.0.
Introduction
A higher-order component (HOC) is a React design pattern used to enhance components with reusable code. HOCs add functionality and behavior to existing component classes.
An HOC is a pure JavaScript function that accepts a component as its argument and returns a new component with the extended functionality.
Remarks
HOCs are often used in third-party libraries, such as the Redux connect function.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents