> ## Documentation Index
> Fetch the complete documentation index at: https://docs.towns.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useReactions

Hook to get the reactions of a specific stream.

## Imports

```ts theme={null}
import { useReactions } from '@towns-protocol/react-sdk'
```

## Definition

```ts theme={null}
function useReactions(
  streamId: string,
  config?: ObservableConfig.FromData<Record<string, MessageReactions>>,
): ObservableValue<Record<string, MessageReactions>>
```

**Source:** [useReactions](https://github.com/towns-protocol/towns/blob/main/packages/react-sdk/src/useReactions.ts)

## Parameters

### streamId

* **Type:** `string`

The id of the stream to get the reactions of.

### config

* **Type:** `ObservableConfig.FromData<Record<string, MessageReactions>>`
* **Optional**

Configuration options for the observable.

## Return Type

The reactions of the stream as a map from the message eventId to the reaction.

```ts theme={null}
ObservableValue<Record<string, MessageReactions>>
```
