Events
Events are how Reflex responds to user interactions like clicking a button, submitting a form, or hovering over an element. In Reflex, events trigger Event Handlers in your State class.
Event Handlers
An event handler is a method in your state class that logic.
python
You hook this up in your UI using component props:
python
Async Handlers & Yielding
If an event handler performs a long-running task (like an API call), it should be async. Reflex also allows you to yield actions to update the UI progressively.
python
Chaining Events
You can trigger multiple events from a single interaction by passing a list to the event prop.
python
Common Event Triggers
Triggers than can be attached to Reflex components:
Special Actions
Reflex provides built-in "Special Actions" that can be triggered from handlers: