Cómo agregar valor con Useref en React

useEffect(() => {
  if (titleRef.current) titleRef.current.value = item?.title;
  if (desRef.current) desRef.current.value = item?.description;
});
Salo Hopeless