Mercurial > urweb
view demo/react.ur @ 1925:15802a00816c
activeHead: don't modify the head. just execute the code provided
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Fri, 06 Dec 2013 14:52:47 +0400 |
parents | e6bc6bbd7a32 |
children |
line wrap: on
line source
fun main () = s <- source "You didn't click it yet."; return <xml><body> <button value="Click me!" onclick={fn _ => set s "Now you clicked it."}/><br/> <dyn signal={v <- signal s; return <xml>{[v]}</xml>}/> </body></xml>