FrontEnd.ro logo
React. useTransition()
const onInputChange = (e) => {
  setInputValue(+e.target.value);

  startTransition(() => {
    setItems(/* ... */);
  });
};