Files
Jiachi LiuandGitHub 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

21 lines
317 B
JavaScript

import { use } from 'react'
export const revalidate = 0
async function getData() {
return {
message: 'hello from layout',
}
}
export default function gsspLayout(props) {
const data = use(getData())
return (
<>
<h1 id="layout-message">{data.message}</h1>
{props.children}
</>
)
}