React · Middle · Question 23 of 75
What does useTransition do?
- ✓Correct answer: Marks an update as non-urgent, keeping the UI responsive
- 2Animates the transition between components via CSS classes
- 3Defers running an effect to the next browser frame
Explanation
const [isPending, startTransition] = useTransition(); updates inside startTransition can be interrupted by more urgent ones. For example, switching to a heavy tab doesn't block the UI, and isPending lets you show an indicator. It has nothing to do with CSS animations.