Reflex Logo

Intro

Gallery

Hosting

Components

New

Learn

Components

API Reference

Onboarding

Events

/

Special-events

Reflex also has built-in special events can be found in the reference .

For example, an event handler can trigger an alert on the browser.

class SpecialEventsState(rx.State):
    def alert(self):
        return rx.window_alert("Hello World!")


def special_events_example():
    return rx.button(
        "Alert", on_click=SpecialEventsState.alert
    )
← Chaining EventsPage Load Events →

Did you find this useful?

HomeGalleryChangelogIntroductionHosting