Question · JavaScript and React course · Module 3: State and Events
Event Propagation in React
In what order are onClick handlers called when clicking a nested element in React (by default)?
Answer options
- From parent to child (capture)
- From child to parent (bubbling)
- Only the target element - no propagation
- Random order depending on rendering
You can check the correct answer by solving this task in the CodeWorlds game.