next.js/test/e2e/app-dir/parallel-routes-and-interception/app/with-loading/layout.tsx
layout.tsx24 lines434 B
import Link from 'next/link'
import { ReactNode } from 'react'

export default function Layout({
  children,
  slot,
}: {
  children: ReactNode
  slot: ReactNode
}) {
  return (
    <>
      <div>
        <Link href="/with-loading">Home</Link>
      </div>
      <div>
        <Link href="/with-loading/foo">To Loading Page</Link>
      </div>
      <div id="slot">{slot}</div>
      <div id="children">{children}</div>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN