1 2 3
import { useLocation } from 'react-router-dom'; export default () => new URLSearchParams(useLocation().search);