

Custom hook that uses either `useLayoutEffect` or `useEffect` based on the environment (client-side or server-side).

## Usage [#usage]

```tsx
import { useIsomorphicLayoutEffect } from "@tilt-legal/cubitt-components/utilities/hooks";

useIsomorphicLayoutEffect(() => {
  // Code to be executed during the layout phase on the client side
}, [dependency1, dependency2]);
```

## API [#api]

### Signature [#signature]

```ts
declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
```

### Parameters [#parameters]

| Parameter        | Type               | Description                                         | Default |
| ---------------- | ------------------ | --------------------------------------------------- | ------- |
| `effect`         | `Function`         | The effect function to be executed.                 | -       |
| `[dependencies]` | `Array&lt;any&gt;` | An array of dependencies for the effect (optional). | -       |

### Return Value [#return-value]

| Value    | Type      | Description                 |
| -------- | --------- | --------------------------- |
| `return` | `unknown` | Value returned by the hook. |
