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.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.