next.js/test/e2e/app-dir/sub-shell-generation/app/layout.tsx
layout.tsx18 lines421 B
'use cache'

import { ReactNode, Suspense } from 'react'
import { getSentinelValue } from './sentinel'

export default async function Root({ children }: { children: ReactNode }) {
  return (
    <html>
      <body>
        <div id="root-layout">Root Layout: ({getSentinelValue()})</div>
        <Suspense fallback={<p id="loading">Loading...</p>}>
          {children}
        </Suspense>
      </body>
    </html>
  )
}
Quest for Codev2.0.0
/
SIGN IN