~/talk

We Don’t Know How React State Hooks Work

Code-level behavior: each hook keeps a per-hook update queue and setState pushes actions that React consumes only during render (lazy) unless React eagerly computes and caches the next state to bail out. useState delegates to useReducer under the hood. Event handlers run inside batches so multiple setState calls collapse to one render; async handlers run outside a batch and produce separate renders, so two same updates can produce one render versus two renders depending on context.

AI-written summary · about

  1. 0:00Introduction
  2. 1:40What React Does
  3. 3:20Render Bailout
  4. 4:55New Use State
  5. 6:30Outro
~/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.