comparison demo/react.ur @ 645:1b571a05874c

React demo
author Adam Chlipala <adamc@hcoop.net>
date Tue, 10 Mar 2009 11:18:01 -0400
parents
children e6bc6bbd7a32
comparison
equal deleted inserted replaced
644:8e17e6b615bd 645:1b571a05874c
1 fun main () =
2 s <- source "You didn't click it yet.";
3 return <xml><body>
4 <button value="Click me!" onclick={set s "Now you clicked it."}/><br/>
5 <dyn signal={v <- signal s; return <xml>{[v]}</xml>}/>
6 </body></xml>