2019-12-29 20:03:12 +01:00
|
|
|
import Link from 'next/link'
|
2020-04-14 09:50:39 +02:00
|
|
|
import { useRouter } from 'next/router'
|
2019-12-29 20:03:12 +01:00
|
|
|
|
|
|
|
export default () => (
|
2020-04-14 09:50:39 +02:00
|
|
|
<>
|
|
|
|
<Link href="/other-page">
|
|
|
|
<a id="other-page-link">
|
|
|
|
<h1>Hello World</h1>
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
<div id="base-path">{useRouter().basePath}</div>
|
|
|
|
</>
|
2019-12-29 20:03:12 +01:00
|
|
|
)
|