mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Reverts the revert of #95878. This failed on `main` due to React bugs (https://github.com/react/react/pull/37061?) which are fixed now.
18 lines
391 B
JavaScript
18 lines
391 B
JavaScript
import { Suspense } from 'react'
|
|
import Link from 'next/link'
|
|
import { connection } from 'next/server'
|
|
|
|
export default async function Layout(props) {
|
|
await connection()
|
|
return (
|
|
<>
|
|
<div>
|
|
<Link href={`/`} className="text-blue-500">
|
|
Home Page
|
|
</Link>
|
|
</div>
|
|
<Suspense fallback={<h1>Loading...</h1>}>{props.children}</Suspense>
|
|
</>
|
|
)
|
|
}
|