~/talk

React Unpacked A Roadmap to React 19

Talkat React Conf 2024 · 2024-05-15..05-16· [react]
slides:none on file

Demo shows React 19’s new action primitives eliminating race conditions in a cart example: switching from manual async handlers to form action and useActionState removes stale updates and revalidation races while preserving a pending UI. startTransition/useTransition support async actions, useOptimistic offers reversible optimistic updates that revert when all actions settle, and server actions + server components let forms call server code directly. The demos run live, pending/error indicators work, and batched updates reduce duplicate refreshes.

AI-written summary · about

  1. 0:00Introduction to React 19
  2. 3:11Race conditions in async code
  3. 4:15Solving race conditions with startTransition
  4. 7:09Pending state with useTransition
  5. 8:13Actions on forms
  6. 11:05useFormStatus for pending UI
  7. 13:14useActionState for state management
  8. 15:00Return values from actions
  9. 19:15Optimistic updates with useOptimistic
  10. 23:29Server components and actions
  11. 28:10Future of actions in React
~/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.