```js
if (typeof document === "undefined") return;
useLayoutEffect(...args);
```
Wouldn't this conditional return of useLayoutEffect violate the rules of hooks?
```js
if (typeof document === "undefined") return;
useLayoutEffect(...args);
```
Wouldn't this conditional return of useLayoutEffect violate the rules of hooks?