rsnext/test/integration/production/pages/query.js
Joe Haddad 18a9c7e371
Improve linting rules to catch more errors (#9374)
* Update `packages/`

* Update examples

* Update tests

* Update bench

* Update top level files

* Fix build

* trigger
2019-11-10 19:24:53 -08:00

17 lines
338 B
JavaScript

import { withRouter } from 'next/router'
const Page = ({ router: { query } }) => (
<>
<p id={'q' + query.id}>{query.id}</p>
<a id="first" href="/query?id=1">
Go to ?id=1
</a>
<a id="second" href="/query?id=2">
Go to ?id=2
</a>
</>
)
Page.getInitialProps = () => ({})
export default withRouter(Page)