Code Editor
Child Components Update Their Parents' state

Pass the Event Handler

In the last exercise, you defined a function in Parent that can change Parent's state.

Parent must pass this function down to Child, so that Child can use it in an event listener on the dropdown menu.

Report a Bug
If you see a bug or any other issue with this page, please report it here.