9 ms·
This is actually cool. Scala.js + scalatags has this looking like this: ``` val model = div( button( onClick := decrement )( "-" ), // decrement is ty
by fxfan 8y ago
This is actually cool. Scala.js + scalatags has this looking like this:
```
val model = div(
button( onClick := decrement )( "-" ), // decrement is typechecked as being a function of event
div( float := float.letf )( model.toInt ) //left float is typechecked and hence the misspelling is caught at compile time so big changes can be made with confidence
)
```