# Reactions::my_reaction()

The viewer's own reaction for the React button ("React" until they react, then their emoji and its name).

Always returns every key so Interactivity bindings never see `undefined`.

```php
my_reaction( array $user_slugs, ?array $types = null ): array
```

## Parameters

- `$user_slugs` (string[]) Slugs the viewer has on the object.
- `$types` (array<string, array<string, mixed>>|null) Reaction definitions (default: the shared registry).

## Return

`array{slug: string, label: string, text: string, active: bool, emoji: string, icon_url: string, hide_icon: bool, hide_emoji: bool}` 

## Changelog

| Version | Description |
| --- | --- |
| 1.6.2 | Introduced |
