Page props

Page searchParams

Server page prop resolving to a plain object. Missing keys are undefined, repeated keys become arrays. Validate before using values. Not a shared layout prop. Source: https://nextjs.org/docs/app/api-reference/file-conventions/page. Draft; examples are illustrative snippets, not complete runnable programs.

Formal Syntax & Structure

nextjs syntaxnextjs
searchParams: Promise<Record<string, string | string[] | undefined>>

Working Example

Example Snippetnextjs
const query = await searchParams;
Next.js Reference