~/talk

Demystifying setState()

Talkat React Rally 2017 · 2017-08-24..08-25· [react]
speakerdeck:dajust
slides:none on file

Explains that setState is an asynchronous batched queue not an immediate mutation, that multiple calls (five, ten, even a hundred) get merged into one reconciliation, and that relying on merged objects breaks increments unless using functional setState which receives previous state and props. Describes React’s diff of JavaScript UI objects (virtual DOM) and mentions Fiber prioritizes updates to delay off‑screen work. Practical takeaway: use functions for state derived from prior state.

AI-written summary · about

  1. 0:00Start
  2. 2:37What is UI?
  3. 16:56COMPOSITION
  4. 21:02setState ASYNCHRONOUS
  5. 23:07Functional setState
  6. 24:38Behold Fiber!
~/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.