active-dom 0.1.0

Reactive wasm web framework in Rust.
Documentation
  • Coverage
  • 71.43%
    15 out of 21 items documented0 out of 0 items with examples
  • Size
  • Source code size: 20.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.13 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 14s Average build duration of successful builds.
  • all releases: 1m 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • mdmahikaishar

Active DOM

Rust Wasm

Reactive wasm web framework in Rust.

Usage

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

Contributing

Contributions are welcome! I would like you to contribute in this project.

Roadmap

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.

Inspired Of

Greg Johnston's youtube channel and git repo simple-framework.

License

This project is licensed under the MIT License - see the LICENSE file for details.