Version 0.4
breaking changes
This release contains changes, that break code written with earlier versions:
- since it was the source of much confusion we renamed the function to build a tree of
Tag
s (formerlyhtml
) torender
:
render {
div("my-class") {
// ...
}
}
- the overloaded operator
<=
to bind aFlow
of actions or events to aHandler
was definitely not Kotlin-like, so we replaced it by thehandledBy
infix-function (please note the reversed order):
button("btn btn-primary") {
text("Add a dot")
clicks handledBy store.addADot
}
new features
- improved remote-api
- support for building and using WebComponents
bug fixes
- improved examples
- improved documentation
build.gradle.kts
Kotlin style
dependencies {
implementation("io.fritz2:fritz2-core-js:0.4")
}
Groovy style
dependencies {
implementation 'io.fritz2:fritz2-core-js:0.4'
}