mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
23 lines
371 B
JavaScript
23 lines
371 B
JavaScript
import { use } from 'react'
|
|
import Runtime from '../../utils/runtime'
|
|
import Time from '../../utils/time'
|
|
|
|
async function getData() {
|
|
return {
|
|
type: 'ISR',
|
|
}
|
|
}
|
|
|
|
export default function Page(props) {
|
|
const { type } = use(getData())
|
|
return (
|
|
<div>
|
|
This is a {type} RSC page.
|
|
<br />
|
|
<Runtime />
|
|
<br />
|
|
<Time />
|
|
</div>
|
|
)
|
|
}
|