Home
← All questions

React 18 concurrent features — useTransition and useDeferredValue

MediumPremiumReact

Asked at Meta · Netflix · Airbnb

React interview practice: Explain concurrent rendering, transitions, and deferred values in React 18+.

Answer

React 18's concurrent renderer can interrupt, resume, or abandon renders. Two hooks expose this to app code:

HookPurpose
useTransitionMark a state update as non-urgent via startTransition(fn). Returns isPending.
useDeferredValueReturns a lagging copy of a value that updates after urgent work finishes.

Both keep the UI responsive during expensive re-renders (filtering, routing, large lists).

Premium question

Unlock the full model answer with Mentoxis Premium.

Unlock with Premium