aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared/src/ts/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/react-shared/src/ts/utils.ts')
-rw-r--r--packages/react-shared/src/ts/utils.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/react-shared/src/ts/utils.ts b/packages/react-shared/src/ts/utils.ts
new file mode 100644
index 000000000..822b67496
--- /dev/null
+++ b/packages/react-shared/src/ts/utils.ts
@@ -0,0 +1,5 @@
+export const utils = {
+ setUrlHash(anchorId: string) {
+ window.location.hash = anchorId;
+ },
+};