aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/useQuery.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/useQuery.js')
-rw-r--r--modern/src/common/useQuery.js5
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 0000000..6c8ac65
--- /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);
+}