You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be more React-way to use RefObject as approach to get DOM element.
RefObject example
const containmentRef = useRef<HTMLElement>(null); // it will be available after mounting
// it becomes
// { current: null } -> { current: HTMLElement }
<div ref={containmentRef} />
The text was updated successfully, but these errors were encountered:
Hi,
It would be more React-way to use RefObject as approach to get DOM element.
RefObject example
The text was updated successfully, but these errors were encountered: