Tag

Event Delegation

0 views collected around this technical thread.

ByteFE
ByteFE
Nov 16, 2022 · Frontend Development

React17 Event Mechanism Deep Dive: Propagation, Binding, and Delegation

This article explains React17's event mechanism changes compared to React16, covering event propagation phases, binding methods like inline HTML, DOM0, and addEventListener, event delegation for efficient handling, and browser event differences.

Browser CompatibilityEvent DelegationEvent Propagation
0 likes · 24 min read
React17 Event Mechanism Deep Dive: Propagation, Binding, and Delegation
Beike Product & Technology
Beike Product & Technology
Dec 17, 2021 · Frontend Development

Understanding React's Event Mechanism: Delegation, Synthetic Events, and Source Code Flow

This article explains React's event system, covering how onClick events are delegated to the document, processed through synthetic events, and handled via the fiber architecture, plugin registry, and priority-based dispatching in React 16.13.1.

Event DelegationEvent HandlingFiber
0 likes · 10 min read
Understanding React's Event Mechanism: Delegation, Synthetic Events, and Source Code Flow
ByteDance ADFE Team
ByteDance ADFE Team
Apr 19, 2021 · Frontend Development

Understanding React's Event System: Registration and Dispatch

This article explains how React registers event listeners on the root, extracts events from the fiber tree, synthesizes cross‑browser synthetic events, accumulates callbacks, and finally dispatches them, illustrating each step with code examples and diagrams.

Event DelegationEvent SystemFrontend
0 likes · 9 min read
Understanding React's Event System: Registration and Dispatch