~/talk

We are React-ing Wrongly

Talkat React Day by Frontend Nation 2025 · on Tuesday, 2025-04-29· [react]
links:none on file
slides:none on file

Argues that useMemo and useCallback are widely overused and shows benchmarks: list render demos at 100 and 1,000 items where per-render time difference is only ~0.4–0.6 ms, while the memoized version costs ~13 ms on first render vs ~3.8 ms for non-memoized. Calls out vague docs ("might make sense"), raises memory/GC concerns for cached values, recommends pass a function to the state setter to avoid stale closures, avoid lifting state or context unnecessarily, and prefer focused state libraries and TanStack-style data fetching for real performance gains.

AI-written summary · about

  1. 0:00Introduction
  2. 2:11React’s evolution and state
  3. 7:56Overusing useMemo and useCallback
  4. 11:10Live demo: memo vs no memo
  5. 19:53How useCallback works
  6. 23:09Invalidation issues with useCallback
  7. 27:04useEffect and state pitfalls
  8. 29:34React render cycle and state lifting
  9. 31:21Memoization best practices
  10. 32:47When not to memoize
  11. 33:31Q&A
~/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.