We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useRef
1 parent b8ab805 commit cb68368Copy full SHA for cb68368
src/utils/useIsOverflowing.tsx
@@ -5,7 +5,7 @@ export function useIsOverflowing(): [
5
MutableRefObject<HTMLDivElement | undefined>,
6
boolean,
7
] {
8
- const reference = useRef<HTMLDivElement>();
+ const reference = useRef<HTMLDivElement>(null);
9
const [isOverflowing, setIsOverflowing] = useState(false);
10
11
useEffect(() => {
0 commit comments