summaryrefslogtreecommitdiff
path: root/demo/react.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-07-21 10:12:35 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-07-21 10:12:35 -0400
commit84a14ca026a8ca7ed4488e51506340b249809fae (patch)
tree69937e8dd046f5e3b3ea38f66061cdc8310351bc /demo/react.ur
parentadfa70ae09d13b338efee432b1e0bfc73af5e104 (diff)
Update demo code for key/mouse handler change
Diffstat (limited to 'demo/react.ur')
-rw-r--r--demo/react.ur2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/react.ur b/demo/react.ur
index 0c460478..35ee9243 100644
--- a/demo/react.ur
+++ b/demo/react.ur
@@ -1,6 +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/>
+ <button value="Click me!" onclick={fn _ => set s "Now you clicked it."}/><br/>
<dyn signal={v <- signal s; return <xml>{[v]}</xml>}/>
</body></xml>