mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
17 lines
414 B
TypeScript
17 lines
414 B
TypeScript
export default async function Page() {
|
|
const secret = (await fetch('http://fake.url/secret').then((res) =>
|
|
res.text()
|
|
)) as any
|
|
const magicNumber = (await fetch('http://fake.url/magic-number').then((res) =>
|
|
res.text()
|
|
)) as any
|
|
|
|
return (
|
|
<>
|
|
<div id="update">touch to trigger HMR</div>
|
|
<div id="secret">{secret}</div>
|
|
<div id="magic-number">{magicNumber}</div>
|
|
</>
|
|
)
|
|
}
|