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
We still need to provide the input with a handler to change a guest name in the state. We've created handlers starting at the top of the component tree. In this video, we'll start at the bottom and work our way up.
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
So far, we've created a couple of handlers
starting at the top of the component
0:00
tree in App.js so now let's start
at the bottom and work our way up.
0:01
I'll go back to GuestName and
enter a change handler in the input.
0:05
So below the value prop I'll add
onChagne = props.handleNameEdits.
0:11
I'll also add it to the propTypes
to make sure it's a function,
0:21
when it's passed in through props.
0:25
So I'll type handleNameEdits,
PropTypes.func.isRequired.
0:27
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