← BYTES
React.js·Intermediate·Ref: 4.2.6
What is a "synthetic event" in React?
Have a question about this video? Mention reference 4.2.6 when you contact us.
a.An event that is never actually dispatched by the browser
b.A fake event used only in automated tests
c.React's cross-browser wrapper object around the browser's native event, with a consistent API regardless of browser quirks
d.An event you must manually construct and dispatch yourself for every interaction
React wraps native browser events in its own `SyntheticEvent` object, which normalizes differences across browsers so your event handler code behaves consistently no matter which browser is running it, while still giving you access to the underlying native event if needed.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES426#Reactjs