Code Editor
Web Browser
Learn
Child Components Update Their Parents' state

Define an Event Handler

To make a child component update its parent's state, the first step is something that you've seen before: you must define a state-changing method on the parent.

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