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(
Introducing Fresh:
No config files, no build step, no node_modules. Just one file and you have a server with routing, JSX, and islands.