useTransition marks state updates as non-blocking Transitions and exposes isPending
Answer: const [isPending, startTransition] = useTransition() is a React Hook for rendering a part of the UI in the background. Wrap state updates in startTransition to mark them as a Transition, and use isPending to show a pending visual state.
Example
import { useState, useTransition } from 'react';
function TabContainer() {
const [isPending, startTransition] = useTransition();
const [tab, setTab] = useState('about');
function selectTab(nextTab) {
startTransition(() => { setTab(nextTab); });
}
return isPending ? <Spinner /> : <Tabs tab={tab} onSelect={selectTab} />;
}
Returns
useTransition does not take any parameters. It returns an array with exactly two items:
- The
isPendingflag that tells you whether there is a pending Transition. - The
startTransitionfunction that lets you mark updates as a Transition.
Actions
A function passed to startTransition is called an "Action". By convention, callbacks called inside startTransition (such as a callback prop) are named action or end in "Action". To create Actions and access the pending state, call useTransition at the top of your component.
Without the Hook
When useTransition is not available, call the standalone startTransition; it works outside components, such as from a data library, but it gives no isPending flag.
See also
Claims
- id: C1 claim: useTransition renders part of the UI in the background. source: S1 evidence: "lets you render a part of the UI in the background"
- id: C2 claim: isPending tells you whether a Transition is pending. source: S1 evidence: "The isPending flag that tells you whether there is a pending Transition."
- id: C3 claim: The function passed to startTransition is an Action. source: S1 evidence: "The function passed to startTransition is called an"
- id: C4 claim: startTransition works outside components. source: S2 evidence: "works outside components, such as from a data library"
Sources
- [S1] useTransition. React docs (reference). https://react.dev/reference/react/useTransition . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] startTransition (source page). reactjs/react.dev (GitHub). https://github.com/reactjs/react.dev/blob/main/src/content/reference/react/startTransition.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: React docs (reference), useTransition; reactjs/react.dev (GitHub), startTransition (source page). CC-BY-4.0 (https://raw.githubusercontent.com/reactjs/react.dev/main/LICENSE-DOCS.md). Copyright Meta Platforms, Inc. and affiliates. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: React docs (reference), useTransition; reactjs/react.dev (GitHub), startTransition (source page). CC-BY-4.0 (https://raw.githubusercontent.com/reactjs/react.dev/main/LICENSE-DOCS.md). Copyright Meta Platforms, Inc. and affiliates.
Cite this
iinventedlight. 2026. "useTransition marks state updates as non-blocking Transitions and exposes isPending." iinventedlight Library, iil:note:dn93c4dn, version of 2026-11-18. https://iinventedlight.com/library/notes/react-usetransition/. License: CC-BY-4.0.
@misc{iil_note_dn93c4dn,
author = {{iinventedlight}},
title = {{useTransition marks state updates as non-blocking Transitions and exposes isPending}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/react-usetransition/},
note = {Permanent ID iil:note:dn93c4dn. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/react-usetransition.md.