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

Support for JavaScript UI's

Open ZeroIntensity opened this issue 1 year ago • 0 comments

Feature description

View should add an API for returning responses via things like React, Svelte, or even Next builds.

Feature example API

from view import new_app, react

app = new_app()

@app.get("/")
async def index():
    return react("index.tsx")

app.run()

Anything else?

This will be waiting on #111, as things like TypeScript might need to be built.

ZeroIntensity avatar Jan 02 '24 18:01 ZeroIntensity