mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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
19 lines
375 B
JavaScript
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 />
|
|
</>
|
|
)
|
|
}
|