Jak dodać wartość z UseRef w React

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