mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
If a layout or page is marked with "use client", we do not need to pass any runtime params from the server; the client can parse them from the URL, or (in the case of a rewrite) from the x-next-rewritten-path and x-next-rewritten-query headers. This means the client can treat the segment as fully static, and no dynamic request is necessary upon navigation.
25 lines
574 B
TypeScript
25 lines
574 B
TypeScript
import { LinkAccordion } from '../components/link-accordion'
|
|
|
|
export default function Page() {
|
|
return (
|
|
<>
|
|
<ul>
|
|
<li>
|
|
<LinkAccordion href="/clothing/1">/clothing/1</LinkAccordion>
|
|
</li>
|
|
<li>
|
|
<LinkAccordion href="/clothing/2">/clothing/2</LinkAccordion>
|
|
</li>
|
|
<li>
|
|
<LinkAccordion href="/shoes/3">/shoes/3</LinkAccordion>
|
|
</li>
|
|
<li>
|
|
<LinkAccordion href="/shoes/4?foo=bar">
|
|
/shoes/4?foo=bar
|
|
</LinkAccordion>
|
|
</li>
|
|
</ul>
|
|
</>
|
|
)
|
|
}
|