~/talk

Managing Complex State in React

Talkat UtahJS Conf 2024 · on Friday, 2024-09-13· [react, frontend-architecture]
name:Mary Shaw
links:none on file
slides:none on file

Claims concrete wins: switching to React plus a design system yields ~50% faster feature delivery; use built‑in tools — useReducer, useContext, useMemo and custom hooks — to model loading/success/error as a reducer-driven data fetch, expose a useCollection hook that returns data/status/error, and dispatch actions to update lock‑step state. Store UX state in the URL for back/bookmark behavior, use localStorage for caching, split complex logic into testable functions and reducers to achieve 100% test coverage on state cases.

AI-written summary · about

  1. 0:00Introduction to complex state
  2. 4:24State management basics
  3. 9:35Working with useReducer
  4. 16:13State buckets and context
  5. 21:37Additional state patterns
  6. 23:22Composition principles
  7. 29:04Project architecture tips
  8. 32:25Live demo 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.