diff --git a/packages/react-div-100vh/src/index.tsx b/packages/react-div-100vh/src/index.tsx index 1f9139f..80a0ee3 100644 --- a/packages/react-div-100vh/src/index.tsx +++ b/packages/react-div-100vh/src/index.tsx @@ -65,5 +65,5 @@ function useWasRenderedOnClientAtLeastOnce() { } function isClient() { - return typeof window !== 'undefined' + return typeof window !== 'undefined' && typeof document !== 'undefined' }