useTransition returns an array with isPending and startTransition. isPending tells whether a transition is pending, and startTransition marks updates as transitions.