Tagged articles
4 articles
Page 1 of 1
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.

Event PropagationReactReact17
0 likes · 24 min read
React17 Event Mechanism Deep Dive: Propagation, Binding, and Delegation
ELab Team
ELab Team
Jun 20, 2021 · Frontend Development

Understanding React Synthetic Events: Architecture, Code, and Common Pitfalls

This article explains how React synthetic events emulate native DOM events, details the event system architecture, provides core registration and execution code, demonstrates mixing with native events, and discusses the benefits and known issues of the synthetic event model.

Event SystemJavaScriptReact
0 likes · 7 min read
Understanding React Synthetic Events: Architecture, Code, and Common Pitfalls
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 SystemJavaScriptReact
0 likes · 9 min read
Understanding React's Event System: Registration and Dispatch