Version 0.8 released
December 03, 2020
We released a new version of fritz2 including
- WebSocket-support
- improved performance and memory
- in-code styling
- components (preview)
Here is the release on github
fun main() {
val store = object : RootStore("", id = "model") {
val addADot = handle { model ->
"$model."
}
}
render {
div {
div("form-group") {
label(`for` = store.id) {
text("Input")
}
input("form-control", id = store.id) {
placeholder = const("Add some input")
value = store.data
changes.values() handledBy store.update
}
}
div("form-group") {
label {
text("Value")
}
div("form-control") {
store.data.bind()
attr("readonly", "true")
}
}
div("form-group") {
button("btn btn-primary") {
text("Add a dot")
clicks handledBy store.addADot
}
}
}
}.mount("target")
}
fritz2 heavily uses Kotlin standard features (especially flows) and has no external dependencies. It's core source is just about 1,5k lines of code so it is one of the most lightweight ui-libs (we know...).
fritz2 offers precise data-binding for your ui-elements. When your data changes, those - and only those - DOM-elements are updated, that are bound to parts of the model, that really have changed - no virtual dom needed.
fritz2 is built around just a few basic concepts (Stores, Handlers, Tags, etc.). You can easily learn how to use them from our documentation or the examples we provide. Enjoy!
fritz2 allows you to build small apps very fast with a few lines of code as well as enterprise scale applications with a focus on reusable components, clean code and structure. The functional reactive concept makes the resulting code easy to read und to maintain.
fritz2 includes everything you need to start your project: state management (even for complex nested models), validation, routing, REST, WebSockets, WebComponents as well as a set of tailor-made components.
Utilizing Koltin's multiplatform-abilities, you have to write your data classes and validation code (!) just once and use it in your client and server. Use a tool-chain (Gradle, IDEA, etc.) you know well to jump right in and build your apps.
December 03, 2020
We released a new version of fritz2 including
Here is the release on github
October 15, 2020
We released a patch for fritz2 to work with Kotlin 1.4.0
Here is the release on github
August 17, 2020
We have created two new full-stack examples which use fritz2
Both projects provide a RESTful API in backend and use fritz2 for the frontend.
Check out the projects and start playing around with it.
August 13, 2020
We released a new version of fritz2 including
Please have a look at the release notes
July 13, 2020
We released a new version of fritz2 including
Please have a look at the release notes