logo

Crates.io version docs.rs docs CI status
Examples

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