2019-04-09 23:58:44 +02:00
|
|
|
import { withRouter } from 'next/router'
|
|
|
|
|
|
|
|
const Page = ({ router: { query } }) => (
|
|
|
|
<>
|
|
|
|
<p id={'q' + query.id}>{query.id}</p>
|
2019-11-11 04:24:53 +01:00
|
|
|
<a id="first" href="/query?id=1">
|
2019-05-30 03:19:32 +02:00
|
|
|
Go to ?id=1
|
|
|
|
</a>
|
2019-11-11 04:24:53 +01:00
|
|
|
<a id="second" href="/query?id=2">
|
2019-05-30 03:19:32 +02:00
|
|
|
Go to ?id=2
|
|
|
|
</a>
|
2019-04-09 23:58:44 +02:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
|
2019-05-22 18:36:53 +02:00
|
|
|
Page.getInitialProps = () => ({})
|
|
|
|
|
2019-04-09 23:58:44 +02:00
|
|
|
export default withRouter(Page)
|