rsnext/test/integration/custom-routes-catchall/pages/hello.js
JJ Kasper 29d267a1dc
Add handling for rewriting to /_next with catchall (#9466)
* Add handling for rewriting to /_next with catchall

* bump
2019-11-20 09:53:31 -06: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