Kotlin plugin for Svelte-like reactivity
Hi!
I’ve reached a working proof-of-concept for a Kotlin compiler plugin that brings Svelte-like reactivity to Kotlin.
A short example (this one is for JavaScript, JVM works as well):
fun main() {
rui(RuiDOMAdapter()) {
var counter = 0
Button("Counter: $counter") { counter++ }
Text("You've clicked $counter times.")
}
}
This works as you would expect: shows a button, when you click on it, the UI updates automatically.
You can check out the current status here: <a...