next.js/test/e2e/app-dir/use-cache-with-server-function-props/app/layout.tsx
layout.tsx21 lines440 B
import Link from 'next/link'
import { ReactNode } from 'react'

export default function Root({ children }: { children: ReactNode }) {
  return (
    <html>
      <body>
        <nav>
          <p>
            <Link href="/server-action">Server Action</Link>
          </p>
          <p>
            <Link href="/nested-cache">Nested Cache</Link>
          </p>
        </nav>
        <main>{children}</main>
      </body>
    </html>
  )
}
Quest for Codev2.0.0
/
SIGN IN