Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what does useref do react

const refContainer = useRef(initialValue);
//useRef returns a mutable ref object whose .current property is initialized to the passed argument (initialValue). 
//The returned object will persist for the full lifetime of the component.
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #useref #react
ADD COMMENT
Topic
Name
6+8 =