useRef Hook: React
useRef Hook helps to create a direct reference to the DOM element, so we can access it and modify, like the JavaScript document.querySelector method. const refContainer = useRef(initialValue); It returns an object which has a property called .curren...




