Crates.io | hobo_core |
lib.rs | hobo_core |
version | 0.2.1 |
source | src |
created_at | 2021-12-13 15:08:33.123924 |
updated_at | 2021-12-14 12:30:46.729316 |
description | hobo is a Rust frontend framework |
homepage | |
repository | https://github.com/grdigital/hobo |
max_upload_size | |
id | 497192 |
size | 137,675 |
hobo is an opinionated, batteries-included Rust frontend framework. Works on stable Rust.
STILL WIP although used in production by GR Digital
Check out the Book!
web_sys::HtmlElement
fn counter() -> impl hobo::Element {
let counter = Mutable::new(0);
cmp::div()
.class((
css::display!(flex),
css::width!(400 px),
))
.child(cmp::div()
.text_signal(counter.signal().map(|value| format!("Counter value is: {}", value)))
)
.child(cmp::button()
.text("increment")
.on_click(move |_| *counter.lock_mut() += 1)
)
}