Back to search

useMemo, useCallback, React.memo, and memoization in React

React memoization tools help avoid unnecessary work, but they only help when they stabilize expensive calculations or props meaningfully.

React Medium Theory

useMemo, useCallback, React.memo, and memoization in React

React memoization tools help avoid unnecessary work, but they only help when they stabilize expensive calculations or props meaningfully.

  • useMemo caches values
  • useCallback caches function identities
  • React.memo skips re-renders for unchanged props

useMemo, useCallback, React.memo, and memoization in React