Event Delegation in React 17
summary
Shows that React 17 attaches listeners to the root of each React tree instead of the document, which fixes nested React trees and prevents someone else’s e.stopPropagation from blocking global handlers. Demonstrates with live demos: a button blocked under React 16 but firing under React 17, a jsperf comparing single-parent delegation vs per-node handlers (parent wins), and a two-listener Promise ordering example that logs "1 p1 2 p2" to explain async resolution.
AI-written summary · about
