Presentations
Templates
Features
Teams
Pricing
Log in
Sign up
Log in
Sign up
Menu
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
https://facebook.github.io/react/docs/higher-order-components.html
https://medium.com/@franleplant/react-higher-order-components-in-depth-cf9032ee6c3e
https://egghead.io/lessons/react-react-fundamentals-higher-order-components-replaces-mixins
[video]
Higher order components
By Michael Jasper
Made with Slides.com
Higher order components
661
Michael Jasper
mikedoesweb.com
mikedoesweb
More from
Michael Jasper