Next.js Discord

Discord Forum

Routing

Answered
New Guinea Freshwater Crocodile posted this in #help-forum
Open in Discord
New Guinea Freshwater CrocodileOP
Let's assume that I have two files named [slug]/page.tsx and [slug]/solve/page.tsx in Next.js. How can I get the slug parameter in the second file?
Answered by @ts-ignore
it will be passed as props to your default exported component
View full answer

2 Replies