jeffvli
3 years ago
1 changed files with 7 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||
import { useLocation } from 'react-router-dom'; |
|||
|
|||
const useRouterQuery = () => { |
|||
return new URLSearchParams(useLocation().search); |
|||
}; |
|||
|
|||
export default useRouterQuery; |
Loading…
Reference in new issue