I deleted every useMemo and nothing happened
The React Compiler is stable, on by default in new Next.js apps, and it makes most manual memoization redundant. I removed 212 useMemo and useCallback calls from a production app to find out whether that was true. It was, with four exceptions, and the exceptions say something about what those hooks were actually doing.
8 min readRead more →