FrontEnd.ro logo
React. useTransition()
const [isPending, startTransition] = useTransition();
const [count, setCount] = useState(0);

// ...

startTransition(() => {
  setCount(c => c + 1);
});