nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

react/Events

React's own event system layered on top of the browser's native one.

10 QuestionsIntermediateMedium Priority ~10 min read

React wraps native DOM events in a SyntheticEvent — a cross-browser wrapper that normalizes behavior so event handling works consistently regardless of the underlying browser. Historically, React attached a single listener at the document root and simulated bubbling internally for performance reasons rather than attaching a listener to every individual element; React 17 changed this to attach at the root container the app is rendered into instead of document, which specifically affects how multiple React roots on the same page interact with each other's events.

Event pooling — reusing a single SyntheticEvent object across events for performance — was removed in React 17 after causing a recurring class of confusing bugs, where accessing event properties asynchronously (inside a setTimeout, for instance) returned null because the pooled object had already been reused. Simpler mistakes are more common day to day: passing onClick={handleClick()} instead of onClick={handleClick} calls the function immediately during render instead of on click.

What you'll walk away knowing

What a SyntheticEvent is and why React wraps native events instead of using them directly
Where React actually attaches its event listeners, and how that changed in React 17
Why event pooling existed, why it was removed, and what bug it used to cause
Common event-handling mistakes: calling a function instead of passing a reference, camelCase naming
1How can you prevent the default behavior of an event in React?Beginner2How to pass a parameter to an event handler or callback?Intermediate3What are syntheticEvent?Intermediate4Describe how events are handled in React.Intermediate5How do we handle events in react.Intermediate
All Topics
1
Basics
JSX
State and Props
Components
Function Components
2
Virtual DOM
Reconciliation
Class Components
Lifecycle functions
3
Hooks
useState
useReducer
useMemo
useContext
useCallback
useEffect
Custom Hooks
New Hooks
4
Code Sharing
HOC
Refs
Data Sharing
Events
Context API
5
Redux
Router
CSR-SSR
React APIs
ReactDOM
Strict Mode
6
Performance Optimisation
Security
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.