Skip to content
Github 💻𝕏Linkedin 🔗

document.querySelector("") in react

Code, Typescript, React1 min read

The problem

Try to avoid doing this not use the document.querySelector("input").scrollIntoView directly in react since it bypasses the virtual dom, useRef instead.