import { PageSection } from "../../components/PageSection.tsx"; import { CodeBlock } from "../../components/CodeBlock.tsx"; import { CodeWindow } from "../../components/CodeWindow.tsx"; const TRADITIONAL = `// package.json // tsconfig.json // next.config.js // postcss.config.js // tailwind.config.js // .eslintrc.json // app/layout.tsx // app/page.tsx // app/api/hello/route.ts import { NextResponse } from "next/server"; export async function GET() { return NextResponse.json({ message: "Hello!", }); }`; const FRESH_EXAMPLE = `// main.ts — that's it. import { App } from "fresh"; const app = new App() .get("/", (ctx) => ctx.render(

Hello!

) ) .get("/api/hello", () => Response.json({ message: "Hello!", }) ); app.listen();`; export function Simple() { return (

Introducing Fresh:

The framework so simple, you already know it.

No config files, no build step, no node_modules. Just one file and you have a server with routing, JSX, and islands.

The traditional way

The Fresh way

); }