YeetCode
Guides

Adding Pages

How to add new pages to the Next.js frontend.

A short recipe for adding new pages to the Next.js app, following the Server Component + Client Component pattern.

What You'll Do

  • Create a new route in the App Router
  • Build a page as a Server Component shell
  • Add Client Components with Convex useQuery subscriptions
  • Handle loading and error states

On this page