useMemo Under the Hood: What Gets Memoized and What Does Not

useMemo caches a computed value between renders. It does not make your app faster for free — it trades computation cost for memory cost and comparison work. Knowing when that trade makes sense separates useful memoization from cargo-culting.

June 7, 20261 min read1 / 2