uchill/front_minimal/src/routes/hooks/use-pathname.js

6 lines
116 B
JavaScript

import { useLocation } from 'react-router-dom';
export function usePathname() {
return useLocation().pathname;
}