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.
You hook this up in your UI using component props:
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.
Chaining Events
You can trigger multiple events from a single interaction by passing a list to the event prop.
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: