import { useLocation } from 'react-router-dom';
const useQuery = () => new URLSearchParams(useLocation().search);
let query = useQuery();
console.log(query.get('myquery');
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
to the point! much appreciated!
Thank you very much! after looking all over the internet this explanation is just perfect. Straight to the point.