diff options
Diffstat (limited to 'modern/src/common/useQuery.js')
-rw-r--r-- | modern/src/common/useQuery.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modern/src/common/useQuery.js b/modern/src/common/useQuery.js new file mode 100644 index 00000000..6c8ac657 --- /dev/null +++ b/modern/src/common/useQuery.js @@ -0,0 +1,5 @@ +import { useLocation } from "react-router-dom"; + +export default () => { + return new URLSearchParams(useLocation().search); +} |