Skip to content

Formateadores y código

Generador de Páginas Next.js App Router

Scaffold app/route/page.tsx with metadata and loaders.

Runs in your browser
app/dashboard/[id]/page.tsx
lines: 20chars: 394size: 394 B
live
app/dashboard/[id]/loading.tsx
lines: 4chars: 106size: 108 B
live

Nota del editor

Understanding · A folder is a route, a file is a level.

Este capítulo en profundidad está disponible solo en inglés por el momento. La herramienta de conversión de arriba funciona en tu idioma; el artículo explicativo extenso aún no se ha traducido.

Preguntas frecuentes

Quick answers.

Does this support the Pages Router?

No. This tool is specifically designed for the App Router architecture introduced in Next.js 13, focusing on Server Components and the `app/` directory.

Is the output TypeScript compatible?

Yes. The generated code includes standard TypeScript interfaces for `PageProps`, such as `params` and `searchParams`, ensuring type safety for your routes.

Can I include SEO metadata?

Yes. You can toggle the inclusion of a static `Metadata` object or a dynamic `generateMetadata` function depending on your route requirements.

Are client side hooks included?

By default, the tool generates Server Components. If you need hooks like `useState` or `useEffect`, you can toggle the `"use client"` directive in the options.

La gente también busca

Herramientas relacionadas

More in this room.

Ver todo en Formateadores y código