TLDR Web Dev · ARTICLES & TUTORIALS

DESIGNING A PURE PYTHON WEB FRAMEWORK

reflex.dev9 min read

Summary from the TLDR Web Dev newsletter

Reflex is a Python-based web framework where apps are built using composable Python functions as components. Under the hood, it compiles frontend code into a React app and backend logic into a FastAPI server. State and logic are defined in a Python State class, bridging event handling and communication between the frontend and backend. Reflex uses WebSockets to send events from the frontend to the backend and update state accordingly.