summaryrefslogtreecommitdiff
path: root/demo/react.ur
diff options
context:
space:
mode:
Diffstat (limited to 'demo/react.ur')
-rw-r--r--demo/react.ur6
1 files changed, 6 insertions, 0 deletions
diff --git a/demo/react.ur b/demo/react.ur
new file mode 100644
index 00000000..0c460478
--- /dev/null
+++ b/demo/react.ur
@@ -0,0 +1,6 @@
+fun main () =
+ s <- source "You didn't click it yet.";
+ return <xml><body>
+ <button value="Click me!" onclick={set s "Now you clicked it."}/><br/>
+ <dyn signal={v <- signal s; return <xml>{[v]}</xml>}/>
+ </body></xml>