Quest for Codev2.0.0
/
SIGN IN
next.js/test/development/app-dir/cache-components-tasks/fixtures/without-prefetch-config/app/simple/layout.tsx
layout.tsx21 lines480 B
import { Suspense } from 'react'
import { Static, Runtime, Dynamic } from '../shared'

export default function Root({ children }: { children: React.ReactNode }) {
  return (
    <>
      <div>
        <Static label="layout" />
        <Suspense fallback="Loading...">
          <Runtime label="layout" />
        </Suspense>
        <Suspense fallback="Loading...">
          <Dynamic label="layout" />
        </Suspense>
      </div>
      <hr />
      {children}
    </>
  )
}