~/talk

Hooked on React Hooks

Talkat UtahJS Conf 2025 · on Friday, 2025-09-12· [react]
links:none on file
slides:none on file

Covers concrete React hook rules and patterns: never conditionally call a hook, how useState’s setter can take a function to avoid stale state, when to switch to useReducer (state that depends on other state or many user interactions), useRef doesn't trigger rerender and is good for DOM access, useEffect needs dependency array and its cleanup/async caveats, when to use useLayoutEffect, and using profiler before adding useMemo/useCallback for costly computations. Good if needing practical how-to details.

AI-written summary · about

  1. 0:00Introduction to hooks
  2. 2:20What are React hooks
  3. 3:23Rules of using hooks
  4. 4:24Understanding useState
  5. 6:32useState advanced features
  6. 6:53When to use useReducer
  7. 7:57useReducer in practice
  8. 10:03Understanding useContext
  9. 11:26When to use useContext
  10. 12:29useContext implementation
  11. 14:57Differences useRef vs useState
  12. 15:59When to use useRef
  13. 17:47Purpose of useEffect
  14. 18:30useEffect dependency array
  15. 19:54useEffect cleanup function
  16. 20:59Common useEffect mistakes
  17. 22:02useLayoutEffect explained
  18. 23:06useMemo and useCallback
  19. 24:53Optimizing with useMemo
  20. 26:37Performance considerations
~/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.