next.js/test/e2e/switchable-runtime/app/node-rsc-isr/page.js
page.js23 lines371 B
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>
  )
}
Quest for Codev2.0.0
/
SIGN IN