DEV Community

Discussion on: Explain Higher Order Component(HOC) in React.js like I'm five

Collapse
 
kayis profile image
K

Higher Order Components are the Render Props of 2015 ;)

They are basically functions that take a reference to a component class and return an new component class that does something with the first class.

Redux, for example, uses this to push data from its store into the props of a component.