mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
9 lines
164 B
TypeScript
9 lines
164 B
TypeScript
import React from 'react'
|
|
import { useRouter } from 'next/router'
|
|
|
|
export const Foo = () => {
|
|
const router = useRouter()
|
|
|
|
return <div>{router.pathname}</div>
|
|
}
|