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
WHen using TypeScript I couldn't get my containerRef to work as it was not of the expected format `RefObject<HTMLElement>`. I
RefObject expected either HTMLElement or null:
```ts
interface RefObject<T> {
/**
* The current value of the ref.
*/
readonly current: T | null;
}
```
Calling useRef without initial arguments creates the ref as `MutableRefObject<T | undefined>` which is incompatible.
0 commit comments