Skip to content
React·Intermediate·Conceptual·1 min read

What is the cost of overusing memoization?

Short interview answer

Every memoized value adds a dependency comparison on each render and holds extra memory for the cached result. Applied indiscriminately, the comparison overhead across a large tree can exceed the cost of the renders it was meant to prevent.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to React performance optimization

Related questions