~/talk

React 18 Concurrency, Explained

Talkat SmashingConf Freiburg 2022 · 2022-09-05..09-07· [react, javascript]
slides:none on file

Chrome DevTools profiling shows a blocking re-render as a single 600ms JavaScript task that freezes the UI; switching a filter update to a non-urgent update via startTransition/useTransition splits work into many small tasks (~5–7ms) so React yields to the browser between frames, making the spinner responsive while full rendering takes about 600ms vs 900ms. Implementation uses DevTools and React DevTools, mentions why-did-you-render, and warns: more CPU, longer total time, single slow component still blocks and some features rely on Chromium-only APIs.

AI-written summary · about

  1. 0:00Introduction to React 18
  2. 2:27Identifying performance issues
  3. 3:49Profiling with devtools
  4. 7:53Traditional optimizations
  5. 12:03Implementing useTransition
  6. 17:38Concurrent rendering results
  7. 20:05How concurrency works
  8. 23:32Under the hood of React 18
  9. 27:44Drawbacks and future outlook
  10. 36:07Q&A and closing
~/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.