Routing
Answered
New Guinea Freshwater Crocodile posted this in #help-forum
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?
2 Replies
@New Guinea Freshwater Crocodile 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?
it will be passed as props to your default exported component
Answer
@@ts-ignore it will be passed as props to your default exported component
New Guinea Freshwater CrocodileOP
thx