view.py
view.py copied to clipboard
Support for JavaScript UI's
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.