Files
Jiachi Liu 20f5db06fa Update precompiled react to next channel (#41708)
Precompile `react@next` and to unlock `cache` and `use` API
2022-10-24 00:31:52 -07:00

25 lines
418 B
JavaScript

import { use } from 'react'
import Runtime from '../../utils/runtime'
import Time from '../../utils/time'
async function getData() {
return {
props: {
type: 'SSG',
},
}
}
export default function Page(props) {
const { type } = use(getData())
return (
<div className="node-rsc-ssg">
This is a {type} RSC page.
<br />
<Runtime />
<br />
<Time />
</div>
)
}