Create a minimal FastHTML app
mainTo create a basic FastHTML application, use fast_app() to initialize the app and route handler, define routes using the @rt decorator, and use serve() to start the server. FastHTML uses components like Div and P that map to HTML elements.
By default, the app will run on http://localhost:5001.
from fasthtml.common import *
app,rt = fast_app()
@rt('/')
def get(): return Div(P('Hello World!'), hx_get="/change")
serve()