AceDevHub
Advanced React Interview QuestionsAdvancedComparison

React · Question 74

What is the difference between useTransition and startTransition?

Direct answer

Both mark updates as Transitions, but useTransition also provides isPending and is available only inside React components or custom Hooks, while standalone startTransition can be called from other JavaScript modules.

ConcernuseTransitionstartTransition
Where usedComponents and custom HooksComponents or non-component code
Marks updates as TransitionYesYes
Pending indicatorProvides isPendingNo built-in pending flag
Typical useUI that needs pending feedbackLibraries or code that only needs to mark priority

If a component needs to dim a tab, disable navigation controls, or show inline pending feedback, useTransition() is usually more convenient.