next.js/test/e2e/app-dir/cache-components/app/cases/parallel/layout.tsx
layout.tsx17 lines373 B
import { Suspense } from 'react'

export default async function Layout({ children, slot }) {
  return (
    <>
      <section>
        <h1>slot</h1>
        <Suspense fallback="loading slot...">{slot}</Suspense>
      </section>
      <section>
        <h1>children</h1>
        <Suspense fallback="loading children...">{children}</Suspense>
      </section>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN