Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
});
 
PREVIOUS NEXT
Tagged: #add #useref #react
ADD COMMENT
Topic
Name
5+6 =