summaryrefslogtreecommitdiff
path: root/demo/react.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-03-10 11:18:01 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-03-10 11:18:01 -0400
commit998ec0f6506d8b7065fbe277c253188b38bcac7c (patch)
tree99e4bdad36025df9b3bd37c782f9dd36f052307a /demo/react.ur
parent36b92359be479b92b5adcbdc669576e61d01f74a (diff)
React demo
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>