Files
danandGitHub 2dea98ed31 [test] Run more test suites under cacheComponents flag, again (#96196)
Reverts the revert of #95878.

This failed on `main` due to React bugs
(https://github.com/react/react/pull/37061?) which are fixed now.
2026-07-27 20:54:09 +01:00

21 lines
430 B
TypeScript

import Link from 'next/link'
import { Suspense } from 'react'
async function Content(props) {
const params = await props.params
return <h1>Blog post {params.slug}</h1>
}
export default function Blog(props) {
return (
<div id="blog-post-page">
<Suspense>
<Content params={props.params} />
</Suspense>
<Link href="/" style={{ display: 'block' }}>
Go home
</Link>
</div>
)
}