Answers for "useref in fuction component in react js"

4

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.
Posted by: Guest on June-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language