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 by Example!
You have completed React by Example!
Preview
In this video, we'll connect the toggleConfirmationAt function to the Guest component.
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
an index as an argument,
then it found the corresponding array and
0:00
the state and flipped the Boolean
corresponding guest confirmed status.
0:00
So lets pass the toggleConfirmationAt
method down to the Guest component and
0:05
bind it to the check box's change event,
so I'll scroll down to the GuestList
0:09
component, And I'll pass it a new
prop called toggleConfirmationAt,
0:14
And I'll pass it the function
with this.toggleConfirmationAt.
0:23
Now I'll open up the GuestList component
and add our new prop to the propTypes.
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