Skip to main content

One doc tagged with "typescript"

View All Tags

High Order Components (HOC)

A High-Order Component (HOC) in React is a function that takes a component and returns a new component with additional props or behaviors. HOCs are a way to reuse component logic across multiple components.