Next.js · Junior · Question 47 of 75

How do you type the props of app/blog/[slug]/page.tsx in Next.js 16?

Explanation

Next.js generates route types (during next dev, next build or next typegen), and the PageProps, LayoutProps and RouteContext helpers know the params shape for each path. NextPage is a Pages Router type.

Further reading

Problem with a question

Next.js · Junior · question 47

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz