Stop Memoizing with “React Forget”
summary
Compiler-driven transforms replace runtime useMemo/useCallback/memo by hoisting cached values and functions into compile-time caches, building a dependency graph and running only the exact update logic needed. Real apps see big wins: 11s → 2.5s JS time on a heavy Lupa app and static sites from 932ms → 652ms, plus up to 2.5x faster interactions. Install as an external npm/plugin (supports React 17–19 and RN 0.70+), surfacing lint rules, offering a use_no_m directive, and skipping or improving existing hook-based code automatically.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 2:24React's new tool
- 8:27React performance issues
- 15:25How the compiler works
- 21:11Compiler advantages
- 23:22Performance results
- 25:30Moving to new code
- 27:20Summary and Q&A








