MediumAnalyzeReact & Next.jsmultiple_choice

What is the difference between useMemo and useCallback?

Analyze Tests ability to break down and examine complex problems.

Answer Options

AuseMemo caches a value; useCallback caches a function reference
BuseMemo is for async operations; useCallback is for sync operations
CThey are identical — useCallback is just an alias for useMemo
DuseMemo runs on mount only; useCallback runs on every render

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 15+ more React & Next.js questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the React & Next.js topic (Frontend).

More React & Next.js Questions