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
There's still one bug in our application, and it has to do with the indexes we're using to handle guest events.
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
and if I uncheck the box to unconfirm Nic,
I would expect
0:00
Nic's tile to disappear because Nic
would no longer be a confirmed guest.
0:01
Well, when I uncheck the tile
doesn't disappear, and
0:06
we see Treasure's tile appear.
0:09
Suddenly Treasure is a confirmed guest
that's strange so what's going on here?
0:11
Well, it has to do with the indexes
we're using to handle guest events.
0:16
I'll open the GuestList component or
index.js inside the GuestList folder.
0:20
And here you can see that
we're passing the index in
0:26
this map function into each guest
component's change handlers.
0:29
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