Files
Jiachi LiuandGitHub 16cbc829ce test: merge base path tests (#55069)
Merge app-dir base path related tests into one
2023-09-06 17:20:47 +00: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>
)
}