React - Higher Order Component (HOC)

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > React

1 - About

Higher Order Component is a function that takes a component and returns a new component.

It's not really a component, more a design pattern known as decorator. For composition, see React - Composition

Advertising

3 - Syntax

const EnhancedComponent = higherOrderComponent(WrappedComponent);

4 - Example

5 - Management

5.1 - Filter

6 - Documentation / Reference

web/javascript/react/hoc.txt · Last modified: 2019/06/21 14:46 by 162.158.126.8