cara menambah nilai dengan useref di react

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