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
It's common to pass the Provider's value prop an object to store multiple properties in state, as well as any actions you want to perform on the data.
This video doesn't have any notes.
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
but you can also pass functions
that modify that state.
0:00
That way consumers can respond to
user interactions with state updates.
0:00
It's common to pass the providers
value prop an object to store
0:06
multiple properties in the state
as well as any event handlers or
0:11
actions you want to perform on the data.
0:16
Currently, our event handlers are
distributed to child components via props.
0:19
For instance, the signInUser and
signOutUser functions
0:25
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