Dyanmic routing - how?
Answered
Havana posted this in #help-forum
HavanaOP
Hi all.
I'm using app router, and i have a page under
I want to create a new route that is
how can i achieve this?
I'm using app router, and i have a page under
/clients.I want to create a new route that is
/clients/:id, for example.how can i achieve this?
Answered by Coffee Coke
3 Replies
Answer
app/clients/[id]/page.tsxIn that page you will receive the following props
interface PageParams {
id: string;
}
export default function Page({ params }: PageParams) {
...
}HavanaOP
Ahh thanks guys works great, i was looking in the docs at the old page router, ty