~/talk

Performance wins with React 18

Talkat Armada JS 2023 · 2023-10-05..10-06· [react, web-performance]
slides:none on file

Live demos show wrapping slow updates with useTransition/startTransition drops TBT from 4425 ms to 105 ms, about 42× faster. Another pattern uses deferred value + React.memo so counters stay instant while large lists update later. Covers automatic batching and flushSync for controlled renders, Suspense for streaming SSR and independent fallbacks, and React Server Components as used in Next.js where the server sends a serialized component payload and client components retain state across route changes.

AI-written summary · about

  1. 0:00Introduction and mic check
  2. 0:28What is React 18
  3. 1:09Rendering performance basics
  4. 3:16Slow rendering example
  5. 6:23Concurrent rendering explained
  6. 8:34Using useTransition hook
  7. 11:27Using useDeferredValue hook
  8. 16:08Automatic batching in React 18
  9. 18:16Suspense for data fetching
  10. 21:30Suspense with server rendering
  11. 24:22React Server Components overview
  12. 27:51Benefits of Server Components
  13. 29:42State retention in Server Components
  14. 30:04Closing and resources
~/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.