Skip to main content
React Interview Questions Theory P0 Medium

React.memo vs useMemo vs useCallback

What does each memoization tool cache or skip? Why might an inline object prop defeat memo?

Official Reference

Model Answer & Explanation

memo can skip a component render due to unchanged props. By default it compares each prop with Object.is. useMemo caches a calculation result and useCallback caches a function identity while dependencies are unchanged. A newly created object has a new identity. Update correctness should not depend on memoization.

Follow-up Interview Question · Can a memoized child still render when its own state or subscribed context changes?

Module Context & References

React · Rendering & hooks theory Explain renders, reconciliation, keys, state, effects and performance
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.