Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

useRef ts

  const iconRef = useRef<HTMLDivElement>(null!);
  const [headerValue, setHeaderValue] = useState<number>(1);
 
PREVIOUS NEXT
Tagged: #useRef #ts
ADD COMMENT
Topic
Name
1+7 =