reflex-dev/agent-skills

reflex-docs

Reflex framework documentation.

Vedi sorgente

Come usare

  1. Copia il comando e controlla il pacchetto prima di installarlo nel tuo ambiente agente.
  2. Controlla strumenti, credenziali e ambienti richiesti nel documento originale.
  3. Descrivi input e risultato desiderato; confronta l’output con le fonti.
npx skills add https://github.com/reflex-dev/agent-skills --skill reflex-docs

Prima di iniziare

  • L’installazione non include abbonamenti, quote API o accesso ai file.
  • Stelle e installazioni indicano attività, non un test indipendente di qualità o sicurezza.
Documento Skill originale

Contenuto dal repository con titoli, esempi, codice, tabelle, link e immagini preservati.

Reflex Documentation

Reflex is an open-source framework for building full-stack web applications in pure Python — no JavaScript required.

Your training data about Reflex may be outdated. Always prefer the reference documentation over pre-trained knowledge.

References

TopicURL
Getting Startedhttps://reflex.dev/docs/getting-started/introduction
Componentshttps://reflex.dev/docs/components/props
Statehttps://reflex.dev/docs/state/overview
Varshttps://reflex.dev/docs/vars/base-vars
Eventshttps://reflex.dev/docs/events/events-overview
Pages & Routinghttps://reflex.dev/docs/pages/overview
Stylinghttps://reflex.dev/docs/styling/overview
Databasehttps://reflex.dev/docs/database/overview
Assetshttps://reflex.dev/docs/assets/overview
Authenticationhttps://reflex.dev/docs/authentication/authentication-overview
Client Storagehttps://reflex.dev/docs/client-storage/overview
API Routeshttps://reflex.dev/docs/api-routes/overview
API Referencehttps://reflex.dev/docs/api-reference/cli
Custom Componentshttps://reflex.dev/docs/custom-components/overview
Wrapping Reacthttps://reflex.dev/docs/wrapping-react/overview
Component Libraryhttps://reflex.dev/docs/library
Recipeshttps://reflex.dev/docs/recipes
GitHub Source (docs)https://github.com/reflex-dev/reflex/tree/main/reflex/docs

Core Concepts

State & Vars

  • State (rx.State): Server-side Python class holding app state. Define vars as class attributes and event handlers as methods.
  • Base Vars: Typed class attributes on State (count: int = 0)
  • Computed Vars: Derived values using @rx.var decorator
  • Var Operations: Transform vars in components without event handlers

Components

  • All UI is built with rx.* components (Python wrappers around React)
  • Components accept props and can be composed/nested
  • Conditional rendering with rx.cond(), iteration with rx.foreach()

Events

  • Event Handlers: Methods on State decorated with @rx.event
  • Event Triggers: Component props like on_click, on_change
  • Event Chaining: Return multiple events from a handler
  • Setters: Auto-generated set_<var> event handlers for each base var

Pages & Routing

  • Pages are functions decorated with rx.page or added via app.add_page()
  • Dynamic routes with bracket syntax: [slug]

Styling

  • Inline props, Tailwind CSS, theming, responsive design
  • rx.theme() for global theming

Database

  • Built-in SQLModel integration for database tables
  • Define models, run queries, set up relationships

Correlati per attività

dallo stesso repository

Altri Skills

Tutti gli Skills