1.event Bubble
1.event Bubble
Now, when we click on button, it will just call Child handler because we
09/23/2023
stopped event propagation in child handler itself.
Dr. Rama Abirami K/ISE,DSATM
• I assume everything is clear up to now . Let’s start with
the other. Cool….
• Event Capturing :
• Event capturing is quite opposite to event bubbling i.e.,
in event capturing event propagation starts its flow
from window to event target where as in event bubbling
it’s reverse. By default, event capturing cannot be seen
in any of modern browsers. But we can achieve this
manually in react.
• Let’s see how it happens and how we achieved it in react
Conclusion:
Event Delegation is implemented using Event Bubbling and Event Capturing.
Dr.RAMA ABIRAMI K