Files
JJ KasperandGitHub e9990a6a86 Move static indicator into dev overlay (#68369)
This moves the static indicator we added for the app router into the dev
overlay so it can share the logic/be aware when either are showing to
coordinate position. This also applies similar design to make the look
more consistent as well.



https://github.com/user-attachments/assets/bca899d4-0635-4868-8284-02f0cb4b5444

Closes: NDX-74
2024-07-31 22:52:07 -07:00

19 lines
375 B
JavaScript

import { Button } from './button'
export default async function Page() {
console.log('rendering index')
const data = await fetch(
'https://next-data-api-endpoint.vercel.app/api/random?page'
).then((res) => res.text())
return (
<>
<p id="page">/</p>
<p id="page-data">{data}</p>
<p id="now">{Date.now()}</p>
<Button />
</>
)
}