~/talk

Event Delegation in React 17

Talkat React Day Bangalore 2021 · 2021-03-19..03-20· [react, web-platform]
slides:none on file

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

  1. 0:00Introduction to Ankita
  2. 1:32What is event delegation?
  3. 2:26Event delegation example
  4. 4:29Performance benefits
  5. 6:49Event propagation phases
  6. 10:56Async event listener logic
  7. 14:10Event handling in React
  8. 16:27Problems with React 16
  9. 19:42Solutions in React 17
  10. 21:56Summary and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.