MemotivaComponent Patterns

What is a higher-order component?

Component Patterns

Audio flashcard · 0:11

Nortren·

What is a higher-order component?

0:11

A higher-order component, or HOC, is a function that takes a component and returns a new component with additional props or behavior. It is a pattern for reusing component logic, though hooks have largely replaced it in modern React.