This Lesson is for PRO Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Autoplay
Hide playlist

    Pass Data through a Component Tree using Context Providers and Consumers in React 16.3

    With React 16.3 a new Context API was introduced. It provides a way to share values like that are considered global between components without having to explicitly pass a prop through every level of the tree.

    When creating a context we get a Provider to pass values into the tree, as well as Consumer in order get them out.

    You must be a Member to view code