mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
9300151118
Co-authored-by: JJ Kasper <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
16 lines
266 B
React
16 lines
266 B
React
const gsspValue = await Promise.resolve(42)
|
|
|
|
export async function getServerSideProps() {
|
|
return {
|
|
props: { gsspValue },
|
|
}
|
|
}
|
|
|
|
export default function Index({ gsspValue }) {
|
|
return (
|
|
<main>
|
|
<div id="gssp-value">{gsspValue}</div>
|
|
</main>
|
|
)
|
|
}
|