Last active
February 21, 2021 01:09
-
-
Save nodahikaru/b61f78933d675517661d9dec251be4f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useLocation } from "react-router-dom"; | |
export function useQueryParams() { | |
const query = new URLSearchParams(useLocation().search); | |
return query; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment