From 69312f5133734237edaea6ca29e2de9bf3203050 Mon Sep 17 00:00:00 2001 From: polwex Date: Sun, 15 Jun 2025 01:44:45 +0700 Subject: checkpoint here... --- .../shared/ServerActionWithSimpleResponse.re | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bs5/universal/native/shared/ServerActionWithSimpleResponse.re (limited to 'bs5/universal/native/shared/ServerActionWithSimpleResponse.re') diff --git a/bs5/universal/native/shared/ServerActionWithSimpleResponse.re b/bs5/universal/native/shared/ServerActionWithSimpleResponse.re new file mode 100644 index 0000000..7df593e --- /dev/null +++ b/bs5/universal/native/shared/ServerActionWithSimpleResponse.re @@ -0,0 +1,23 @@ +[@react.client.component] +let make = () => { + let (message, setMessage) = RR.useStateValue(""); + let (isLoading, setIsLoading) = RR.useStateValue(false); + +
+ +
{isLoading ? "Loading..." : message}
+
; +}; -- cgit v1.2.3