Files
b082e09054 chore: replace the all path-name with pathname for consistency (#71000)
## Description
At [replace all 'athName' with 'athname' for
consistency](https://github.com/vercel/next.js/pull/70690), the all
`pathName` is replaced by `pathname`.
Then `path-name` should also change `pathname`.

x-ref: #70690

Co-authored-by: JJ Kasper <[email protected]>
2024-10-09 13:08:48 -07:00

11 lines
207 B
JavaScript

import { usePathname } from 'next/navigation'
export function ReadPathname() {
const pathname = usePathname()
return (
<div id="pathname" data-pathname={pathname}>
{pathname}
</div>
)
}