how to assign a value to a useRef in React code example
Example: how to add value with useref in react
useEffect(() => {
if (titleRef.current) titleRef.current.value = item?.title;
if (desRef.current) desRef.current.value = item?.description;
});