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
Let’s go over the key concepts you learned in this workshop.
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
Context is a more efficient and
0:00
maintainable way to pass data to all
the components of your React app.
0:00
Using context can be very tempting,
but just because you need to pass
0:06
data several levels deep, doesn't mean you
need to create a context for that data.
0:11
React context is best used for
data that updates less frequently.
0:17
For example, some common use cases for
0:23
context are theming to store state that
controls the appearance of the app.
0:26
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