Coding task · Next.js course · Module 2: Routing and Layouts
Practice: Dynamic Product Page
Create a dynamic product page
Task
Create the page app/product/[id]/page.js: default-export an async ProductPage({ params }) component. In Next.js 16 params is a Promise, so read id with const { id } = await params and display an h1 heading with the text “Product {id}”.