view.py
view.py copied to clipboard
FastUI Support
trafficstars
Proposal:
For batteries-detachable purposes, view.py should support responses from FastUI. This will likely be similar to how ReactPy is implemented when #118 is done.
Basically:
from view import new_app
from fastui import components as c
app = new_app()
@app.get("/")
def index():
return c.Page(...)
app.run()