Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

useref object is possibly null

//Specify the type or assign a variable with the same type 
const overlayEl = useRef<HTMLDivElement>(null);
or
const overley E1 = useRef(document.createElement('div'));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #useref #object #possibly #null
ADD COMMENT
Topic
Name
9+8 =