~/talk

Don't Forget React memo

Talkat React Alicante 2022 · 2022-09-29..10-01· [react, web-performance]
slides:none on file

Claims that useCallback is just sugar for useMemo, shows a custom memorization hook built with useRef/useState, and reports concrete timings — filtering costs ~16.5 ms and 45 ms sort cost on second renders — so wrapping every function backfires. Demonstrates a real react-table refactor where memo logic moves to refs, uses react-use and Apollo for a systems-locked cache, and concludes that selective memoization helps but blanket useMemo/useCallback wastes CPU and memory.

AI-written summary · about

  1. 0:00Introduction
  2. 1:37React memo and useMemo matter
  3. 3:23React memo use cases
  4. 5:54useMemo useCallback myths
  5. 7:19Custom hooks with useMemo useRef
  6. 9:29useCallback fails to prevent renders
  7. 11:18useCallback performance pitfalls
  8. 12:50Parent renders affect children
  9. 13:55Refactoring context with useState useRef
  10. 15:20Skip React memo optimizations
  11. 16:06Performance debugging tools
  12. 16:33Closing 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.