summaryrefslogtreecommitdiff
path: root/bs5/universal/native/FunctionReferences.re
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-06-15 02:15:10 +0700
committerpolwex <polwex@sortug.com>2025-06-15 02:15:10 +0700
commit8b7ee88a6a4c7f1209ebe180241c928049a67162 (patch)
tree570a3860327df1d218a86952c2a54be104ae63f7 /bs5/universal/native/FunctionReferences.re
parent69312f5133734237edaea6ca29e2de9bf3203050 (diff)
well that was smooth
Diffstat (limited to 'bs5/universal/native/FunctionReferences.re')
-rw-r--r--bs5/universal/native/FunctionReferences.re5
1 files changed, 5 insertions, 0 deletions
diff --git a/bs5/universal/native/FunctionReferences.re b/bs5/universal/native/FunctionReferences.re
new file mode 100644
index 0000000..b7722be
--- /dev/null
+++ b/bs5/universal/native/FunctionReferences.re
@@ -0,0 +1,5 @@
+type t = Hashtbl.t(string, ReactServerDOM.server_function);
+
+let registry = Hashtbl.create(10);
+let register = Hashtbl.add(registry);
+let get = Hashtbl.find_opt(registry);