Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.04 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.04 KB

🍃 xFrame

A reactive system to build fine-grained reactive applications.

✍️ Example

use xframe::*;

create_root(|cx| {
    let state = cx.create_signal(1);

    let double = cx.create_memo(move || *state.get() * 2);
    assert_eq!(*double.get(), 2);

    state.set(2);
    assert_eq!(*double.get(), 4);

    state.set(3);
    assert_eq!(*double.get(), 6);
});

💭 Insipired by

Please check out these awesome works that helped a lot in the creation of xframe:

  • sycamore-rs/sycamore: A library for creating reactive web apps in Rust and WebAssembly.
  • gbj/leptos: A full-stack, isomorphic Rust web framework leveraging fine-grained reactivity to build declarative user interfaces.

⚖️ License

Licensed under either of

at your option.