Closed mshwery closed 4 years ago
Turns out React already has a type that covers our bases more fully than what I used.
type Ref<T> = { bivarianceHack(instance: T | null): void }["bivarianceHack"] | RefObject<T> | null;
Turns out React already has a type that covers our bases more fully than what I used.