13 lines
182 B
JavaScript
13 lines
182 B
JavaScript
|
import { useRouter } from 'next/router'
|
||
|
|
||
|
const Page = () => {
|
||
|
const { pathname } = useRouter()
|
||
|
return (
|
||
|
<>
|
||
|
<h3>page: {pathname}</h3>
|
||
|
</>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default Page
|