How does React’s concurrent rendering improve performance?

Concurrent rendering lets React interrupt rendering to focus on higher-priority updates, making the UI more responsive. With the useTransition hook, non-urgent UI changes can be deferred.

const [isPending, startTransition] = useTransition();