~/talk

Eric Bishard - State Management with React Hooks

Talkat React Loop 2019 · on Friday, 2019-06-21· [react, frontend-architecture]
slides:none on file

Argues that React Hooks replace class verbosity and simplify state by showing concrete code: useState/useEffect for a counter and title updates, useReducer with dispatch/actions for a to‑do list that supports add/toggle/delete/clear plus a React Router redirect and an input ref. Uses Context + a third‑party useMediaPredicate hook for responsive nav. Demo compiles and works; example code shrinks from 61 vs 81 lines (1,484 vs 1,823 chars) and shows fewer cognitive overheads than classes.

AI-written summary · about

  1. 0:00Start
  2. 1:23React State History
  3. 3:13Four Rules for Hooks
  4. 4:03React Hooks Provide
  5. 4:35The Elevator Pitch
  6. 5:03Simple Code Examples
  7. 9:21What is a Reducer in Plain JS?
  8. 11:49useReducer()
  9. 14:07Let's Build a Todo App with Hooks
~/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.