Coding task · Next.js course · Module 2: Routing and Layouts
Practice: Catch-All Route
Create a catch-all route
Task
Create the catch-all route app/docs/[...slug]/page.js: default-export an async DocsPage({ params }) component, read the array of segments with const { slug } = await params and display each URL segment in its own li element of a ul list.