Web / ReactJS Interview questions
Explain useRef hook in React.
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.
const refContainer = useRef(initialValue);
More Related questions...