~/talk

Goodbye, useState

Talkat React Paris 2025 · 2025-03-20..03-21· [react, frontend-architecture]
slides:none on file

Argues that useState should no longer be the default for growing apps and shows concrete alternatives: use server components and Suspense or TanStack Query to remove loading booleans, use use-search-params or URL search parameters for persistent UI state, swap refs for click counters to avoid rerenders, prefer native form data (or React Hook Form + Zod) over countless input setStates, use discriminated unions instead of separate loading/error flags, useReducer for constrained logic, and useSyncExternalStore or small stores (Zustand / xate store) for shared state; demos and patterns all work in practice.

AI-written summary · about

  1. 0:00Introduction to state
  2. 1:37State weirdness and basics
  3. 4:24Controlling re-renders
  4. 6:06URL as state
  5. 8:22Data fetching patterns
  6. 12:00Form management
  7. 17:05Reducing overused state
  8. 20:00Derived state and unions
  9. 22:35Managing complex logic
  10. 25:40External stores
  11. 28:01State management libraries
  12. 30:36Local-first and conclusion
~/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.