If you want to access the event properties in an asynchronous way (eg.
If you want to access the event properties in an asynchronous way (eg. in a modState(…)
function),
React will have recycled the event by the time the asynchronous call executes.
This convenience function extracts a value from the event synchronously (i.e. now!) and so that it is available to the asynchronous code.
Stops the default action of an element from happening.
Stops the default action of an element from happening. For example: Prevent a submit button from submitting a form Prevent a link from following the URL
Stops the bubbling of an event to parent elements, preventing any parent event handlers from being executed.
Stops the bubbling of an event to parent elements, preventing any parent event handlers from being executed.