document.querySelector("") in react
— Code, Typescript, React — 1 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.
— Code, Typescript, React — 1 min read
Try to avoid doing this not use the document.querySelector("input").scrollIntoView
directly in react since it bypasses the virtual dom, useRef
instead.