Higher Order Components

suggest change

Versions

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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents