There's a faster version of egghead. Click here to try it.
1×
Become a member
to unlock all features
Autoplay

    Implement a Higher Order Component

    reactReact
    ^16.3.2

    Sometimes you have some boilerplate for components that would be nice to abstract away slightly with a simple helper function. In this lesson we'll learn how to create a "Higher Order Component" which is a component factory function. We'll use it to give a given component a prop for our context value.