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...

Markdown supported · ⌘↵ to post
Developer Avocado
Frontend developer. Debugging this world one console.log() at a time
Thanks for explanation 👍