rsnext/examples/with-loading/pages/forever.tsx
Henrik Wenz 7a93093332
[Docs] Update with-loading example (#39646)
Changelog

Updated dependencies
Migrated to Typescript
Use CSS from npm module

Documentation / Examples

 Make sure the linting passes by running pnpm lint
 The examples guidelines are followed from our contributing doc
2022-08-16 11:29:48 +01:00

10 lines
235 B
TypeScript

export async function getServerSideProps() {
await new Promise((resolve) => {
setTimeout(resolve, 3000)
})
return { props: {} }
}
export default function ForeverPage() {
return <p>This page was rendered for a while!</p>
}