> For AI agents: the complete documentation index is at [llms.txt](https://reflex.dev/docs/llms.txt). For a Markdown version, remove the trailing slash from the page URL and append `.md`. The docs home is available at [index.md](/docs/index.md).

# Eventhandler

`reflex_base.event.EventHandler`

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

## Fields

| Prop | Description |
| --- | --- |
| `event_actions: dict[str, bool \| int]` | Whether to `preventDefault` or `stopPropagation` on the event. |
| `fn: Any` | The function to call in response to the event. |
| `state: Optional[type[BaseState]]` | The state this EventHandler is directly attached to, if any. |

## Methods

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