# hooks/useReadable (zidane-ui)

Import: `import { … } from 'zidane-ui'`. Source: [ui/src/hooks/useReadable.ts](https://github.com/Tahul/zidane/blob/main/ui/src/hooks/useReadable.ts).

## Functions

### `useReadable`

Function.

Subscribes a component to a [`Readable`](https://zidane.si/docs/reference/ui-store.md#Readable) and returns its current value, re-rendering when it changes.

```ts
function useReadable<T>(store: Readable<T>): T
```

**Type parameters**

- `T`

**Parameters**

- `store` (`Readable<T>`): The store to read.

**Returns** `T`

Source: [ui/src/hooks/useReadable.ts:12](https://github.com/Tahul/zidane/blob/main/ui/src/hooks/useReadable.ts#L12)
