Higher Order Components

First, some definitions and theory

Function =>

Function =>

Object

Object

Function =>

Object

Element

Component

Higher Order Component

First, some definitions and theory

Function =>

Function =>

Object

Higher Order Component

In other words, a component which returns a component

Why would we ever want a component which returns another component?

  • Generalization & Abstraction

  • Composability > Inheritance

References

Higher order components

By Michael Jasper

Higher order components

  • 643