# zustand/shallow

Part of the `zustand` package: install `zustand` and import these from `zustand/shallow`.

## Functions

### `shallow`

```ts
function shallow<T>(valueA: T, valueB: T): boolean
```

### `useShallow`

```ts
function useShallow<S, U>(selector: (state: S) => U): (state: S) => U
```
