

Read a localStorage key reactively without creating a setter.

## Usage [#usage]

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

const theme = useReadLocalStorage<string>("theme");
```

## API [#api]

### Signature [#signature]

```ts
declare function useReadLocalStorage<T>(key: string, options: Options<T, false>): T | null | undefined;
declare function useReadLocalStorage<T>(key: string, options?: Partial<Options<T, true>>): T | null;
```

### Parameters [#parameters]

This hook takes no arguments.

### Return Value [#return-value]

| Value    | Type | Description |           |   |        |                             |
| -------- | ---- | ----------- | --------- | - | ------ | --------------------------- |
| `return` | \`T  | null        | undefined | T | null\` | Value returned by the hook. |
