const [isPending, startTransition] = useTransition(); const [count, setCount] = useState(0); // ... startTransition(() => { setCount(c => c + 1); });