ForgeFrontend — Prepare, Practice, Crack
Secure checkout
Lifetime access
Instant Drive delivery
Free updates forever

Prepare · Practice · Crack

What is a SyntheticEvent in React?

Quick answer

A cross-browser wrapper around the native DOM event with the same API. React uses it for consistent event behaviour across browsers.

In detail

React normalises events into SyntheticEvent objects so e.preventDefault(), e.target, etc. work identically everywhere. In React 17+ events are attached to the root container (not document) via delegation. You access the native event with e.nativeEvent if needed.

<form onSubmit={e => { e.preventDefault(); submit(); }}>
  <button>Go</button>
</form>

Why interviewers ask this: Checks understanding of React's event system.

This is 1 of 118+ questions in the React Interview Kit

Get every question with detailed answers, follow-ups and real code — plus coding challenges and a last-minute revision sheet. One-time payment, instant access.

⚡ Get the React Interview Kit → ₹399

Full kit

React Interview Kit · ₹399

Get it →