rsnext/test/integration/invalid-multi-match/pages/hello.js
JJ Kasper ff2d28c4ff Add err.sh for invalid multi-match usage (#9498)
* Adds err.sh for multi-match error

* Fix missing apostrophe

* Update regex to catch other param names

* Add test for multi-match error

* Update test/integration/invalid-multi-match/test/index.test.js
2019-11-23 02:23:01 +01:00

15 lines
253 B
JavaScript

import { useRouter } from 'next/router'
console.log('hello from hello.js')
const Page = () => {
const { query } = useRouter()
return (
<>
<h3>hello world</h3>
<span>{JSON.stringify(query)}</span>
</>
)
}
export default Page