Fastro
BlogDocsSign in

TSX Page


Create hello.tsx file:

import fastro, { Context, HttpRequest } from "https://fastro.deno.dev/mod.ts";

const f = new fastro();

f.get(
    "/",
    (_req: HttpRequest, ctx: Context) => {
        return ctx.render(<h1>Hello, jsx!</h1>);
    },
);

await f.serve();
Made with ♡ in Tulungagung