diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-03-10 11:18:01 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-03-10 11:18:01 -0400 |
commit | 998ec0f6506d8b7065fbe277c253188b38bcac7c (patch) | |
tree | 99e4bdad36025df9b3bd37c782f9dd36f052307a /demo/react.ur | |
parent | 36b92359be479b92b5adcbdc669576e61d01f74a (diff) |
React demo
Diffstat (limited to 'demo/react.ur')
-rw-r--r-- | demo/react.ur | 6 |
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> |