Rust zero-cost reactive UI framework.
```rust
enum Event {
Increment,
Decrement,
}
fn counter(count: &i32) -> impl View> {
(
Html::h1((), count.tostring()),
Html::button(on("click", || Event::Increment), "More"),
Html::button(on("click", |_| Event::Decrement), "Less"),
)
}
fn main() {
concoct::web::run(
0,
|count, event| match event {
Event::Increment => *count += 1,
Event::Decrement => *count -= 1,
},
counter,
);
}
```
Features
- Cross-platform components
- Compile-time UI tree
- Efficient view updates
- Inspired by the elm architecture