"Java Objects (2016)" was retired on July 31, 2026. You are now viewing the recommended replacement.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed React Context API!
You have completed React Context API!
Preview
This challenge will give you a great opportunity to practice what you've learned so far about context.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
There's still some prop
drilling happening in the app.
0:00
And I'd like for you to create a new
context to hold all the state that
0:00
controlled the theme of the app.
0:04
Let's go over what you'll need to do.
0:07
In this challenge, you're going to create
a new context called themeContext.
0:10
This context should provide
the isDarkMode, accentColor, and
0:16
fontPercentage states and its helper
functions to the component in our app.
0:21
Try to make your provider
a higher-order component, so
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up