seniorReact

How does React.memo, useMemo, and useCallback affect performance?

Updated Apr 23, 2026

Short answer

React.memo memoizes a component’s output by shallow-comparing props. useMemo memoizes a computed value. useCallback memoizes a function identity. Each trades memory and complexity for fewer re-renders or fewer expensive recalculations—but they only help if child work is actually expensive or if referential equality prevents downstream renders.

Deep explanation

Premature memoization can hide bugs (stale props) and add overhead. Good targets: pure list items receiving stable props, expensive derived data, callbacks passed to memoized children that would otherwise re-render due to new function identities.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More React interview questions

View all →