Question · Vibe coding with Claude Code course · Module 3: Twitter clone

Quiz: Dynamic Routes

How do you create a dynamic route for /post/123 in Next.js App Router?

Answer options

  • app/post/$id/page.tsx
  • app/post/:id/page.tsx
  • app/post/[id]/page.tsx
  • app/post/{id}/page.tsx

You can check the correct answer by solving this task in the CodeWorlds game.