nami 0.10.1

A powerful, lightweight reactive framework.
Documentation
//! An example of how to use Nami.

use nami::{Binding, binding};

fn main() {
    // Demonstrates automatic type conversion with Into trait
    let text: Binding<String> = binding("hello world"); // &str -> String
    println!("Text value: {}", text.get());

    // Direct initialization
    let counter: Binding<f64> = binding(42);
    println!("Counter: {}", counter.get());

    // Update values - set() also accepts Into<T> for ergonomic usage
    text.set_from("updated text"); // No .into() needed!
    counter.add_assign(8.0);

    println!("\nAfter updates:");
    println!("Text: {}", text.get());
    println!("Counter: {}", counter.get());
}