Skip to content
RED SAG Skills
mediumStudy question · answer published in Next.js interview questions, so no pointsnextjsapp-router

Reading params in Next.js 15+

Which page code reads the id correctly in Next.js 15 and later?

export default async function Page({ params }: { params: Promise<{ id: string }> }) {
  // read id here
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions