~/talk

Events As A Communication Pattern

Talkat ReactNext 2024 · on Monday, 2024-06-24· [react, frontend-architecture]
name:Sagi Liba
links:none on file
slides:none on file

Claims that React components communicate reliably with browser native custom events instead of extra libraries, implemented as sendEvent & useActOnEvent using the browser CustomEvent via window and a global listener. Demonstrates a filters infrastructure and a table row click example that work and simplify coupling. Surprising pitfall: parent state can finish before child updates and force a remount; fixes are namespaced IDs and sending events after state changes via event queue with useRef and useEffect. No external state libs required.

AI-written summary · about

  1. 0:00Agenda
  2. 1:41Framework Mindset
  3. 1:58Using Events
  4. 2:27Send Events
  5. 3:16Listen For Events
  6. 4:02Example
  7. 5:16Issues
  8. 11:38Benefits
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.