~/talk

Managing React State: 10 Years of Lessons Learned

Talkat React Day Berlin 2023 · on Tuesday, 2023-12-12· at 20:25· [react, frontend-architecture]

Clear, actionable claims and code demos: unify related state with an address object instead of separate useState calls, when to replace multiple setters with useReducer is underutilized (poll: ~50% never used it), and when to React Query replaces fetch-in-useEffect — a short demo builds a custom useFetch hook as a teaching tool but shows React Query/SWR/RTK Query are preferred. Slides list eight state locations, about 19 practical tips, and examples of URL, ref, context, local storage use.

AI-written summary · about

  1. 0:00Introduction
  2. 1:56Unifying state
  3. 4:00Avoid multiple useState
  4. 6:29Stop sinking state
  5. 9:18Fetching without useEffect
  6. 13:29Eight state methods
  7. 15:35Resources and closing remarks
~/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.