view.py icon indicating copy to clipboard operation
view.py copied to clipboard

FastUI Support

Open ZeroIntensity opened this issue 1 year ago • 1 comments
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()

ZeroIntensity avatar Jun 16 '24 04:06 ZeroIntensity