v0.1.0
Initial release. Use Rx[T]
values in ScalaTags DSL and get dynamic updates for:
- Child nodes
- Attribute values
- Styles
Example:
val c = Var("blue")
val text = Rx(s"It is a ${c()} text!")
def toggle(): Unit = {
c() = if (c() == "blue") "green" else "blue"
}
document.body.appendChild(
div(
color := c, onclick := toggle _,
text
).render
)