In this video I talk about how react events are different from the vanilla
javascripts addeventlistener. and you will also understand why or when to use each of them depending upon the use case scenarios.
IMPORTANT NOTE:
1- at timestamp 0:53 it should be id="buttonElement" instead of "greetBtn" for the button element.
2- Event pooling has been removed from react since react 17 and onwards.
example reference for when to use addeventlisteners in react- https://stackoverflow.com/questions/59017954/react-close-modal-on-click-outside
Download
0 formats
No download links available.
How react events are different from Js addEventListeners | Interview question | NatokHD