mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
13 lines
225 B
TypeScript
13 lines
225 B
TypeScript
import { nanoid } from 'nanoid'
|
|
import { headers } from 'next/headers'
|
|
|
|
export default async function Page() {
|
|
await headers()
|
|
return (
|
|
<>
|
|
<h1>Dynamic Page</h1>
|
|
<p id="nanoid">{nanoid()}</p>
|
|
</>
|
|
)
|
|
}
|