Next.js · Junior · Question 7 of 75

How do you correctly read params in a Next.js 16 page?

Explanation

Since Next.js 15, params and searchParams are promises, and Next.js 16 removed synchronous access entirely. In a server component you await them; in a client page, use use(params). The useParams hook works only in client components.

Further reading

Problem with a question

Next.js · Junior · question 7

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