File conventions
Dynamic route segment
Captures one path segment as a named string in the awaited params object. Matching a segment does not verify a record. Source: https://nextjs.org/docs/app/api-reference/file-conventions/dynamic-routes. Draft; examples are illustrative snippets, not complete runnable programs.
Formal Syntax & Structure
nextjs syntaxnextjs
app/catalog/[slug]/page.tsxWorking Example
Example Snippetnextjs
const { slug } = await params;