~/talk

A Guided Tour of React Hooks

Talkat React Boston 2019 · 2019-09-21..09-22· [react]
slides:none on file

Covers concrete mechanics: how Hooks store state in indexed slots, four bread‑and‑butter APIs (useState, useEffect, useReducer, useContext), and building reusable hooks. Shows working examples: a people counter, a three‑field login form, a light‑switch reducer, and a Reddit fetch that initially fires repeatedly until the dependency array fix prevents repeated JSON requests. Demonstrates custom hooks including a useToggle implemented with useCallback to preserve referential equality, and explains effect cleanup and when to prefer reducers or Redux.

AI-written summary · about

  1. 0:00Start
  2. 4:37React Hooks a guided tour
  3. 5:14Hooks are additive.
  4. 13:07React Hooks useReducer
  5. 16:232. Update logic is complex
  6. 28:20Custom 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.