2019-09-27 19:36:00 +02:00
|
|
|
import Link from 'next/link'
|
|
|
|
|
2020-02-27 18:57:39 +01:00
|
|
|
export async function getStaticProps() {
|
2019-09-27 19:36:00 +02:00
|
|
|
return {
|
|
|
|
props: {
|
|
|
|
world: 'world',
|
2019-11-11 04:24:53 +01:00
|
|
|
time: new Date().getTime(),
|
|
|
|
},
|
2019-09-27 19:36:00 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ({ world, time }) => (
|
|
|
|
<>
|
|
|
|
<p>hello {world}</p>
|
|
|
|
<span>time: {time}</span>
|
2019-11-11 04:24:53 +01:00
|
|
|
<Link href="/">
|
|
|
|
<a id="home">to home</a>
|
2019-09-27 19:36:00 +02:00
|
|
|
</Link>
|
|
|
|
<br />
|
2019-11-11 04:24:53 +01:00
|
|
|
<Link href="/something">
|
|
|
|
<a id="something">to something</a>
|
2019-09-27 19:36:00 +02:00
|
|
|
</Link>
|
|
|
|
</>
|
|
|
|
)
|