Como agregar valor com o USeRef no React
useEffect(() => {
if (titleRef.current) titleRef.current.value = item?.title;
if (desRef.current) desRef.current.value = item?.description;
});
Salo Hopeless