Answers for "how to add value with useref in react"

0

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;
});
Posted by: Guest on January-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language