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

    Implement a Higher Order Component


    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.