> For AI agents: the complete documentation index is at [llms.txt](https://reflex.dev/docs/llms.txt). Markdown versions are available by appending `.md` or sending `Accept: text/markdown`.

# Eventhandler

`reflex_base.event.EventHandler`

An event handler responds to an event to update the state.

Attributes:
    fn: The function to call in response to the event.
    state: The state this EventHandler is directly attached to, if any.

## Fields

| Prop | Description |
| --- | --- |
| `event_actions: dict[str, bool \| int]` |  |
| `fn: Any` | The function to call in response to the event. |
| `state: type[<property object at 0x7f1bd0506de0>] \| None` | The state this EventHandler is directly attached to, if any. |

## Methods

| Signature | Description |
| --- | --- |
| `get_parameters(self) -> collections.abc.Mapping[str, inspect.Parameter]` | Get the parameters of the function. |
