| Crates.io | active-dom |
| lib.rs | active-dom |
| version | 0.1.0 |
| created_at | 2024-02-25 10:00:19.919158+00 |
| updated_at | 2024-02-25 10:00:19.919158+00 |
| description | Reactive wasm web framework in Rust. |
| homepage | |
| repository | https://github.com/mdmahikaishar/active-dom |
| max_upload_size | |
| id | 1152348 |
| size | 21,166 |
Reactive wasm web framework in Rust.
Add this crate to your Cargo.toml file:
[dependencies]
active_dom = "0.1.0"
// main.rs
use active_dom::{create_signal, mount, DOM};
fn main() {
mount(|ctx| {
let count = create_signal(ctx, 1);
DOM::new("div")
.child(
&DOM::new("button")
.text("-")
.on("click", move |_| count.set(count.get() - 1))
)
.dyn_text(ctx, move || count.get().to_string())
.child(
&DOM::new("button")
.text("+")
.on("click", move |_| count.set(count.get() + 1))
)
});
}
trunk serve
Contributions are welcome! I would like you to contribute in this project.
This project is in its early stages, and there are many missing features that need implementation. Check the Issues section for a list of features, enhancements, and bug fixes that are planned.
Greg Johnston's youtube channel and git repo simple-framework.
This project is licensed under the MIT License - see the LICENSE file for details.