modx 0.1.4

A way to handle states with structs in Dioxus inspired by mobx
Documentation
use {dioxus::prelude::*, modx::store};

#[store(Default)]
pub struct CounterStore {
    pub count: i64,
}

impl CounterStore {
    pub fn inc(&mut self) {
        self.count += 1;
    }

    pub fn dec(&mut self) {
        self.count -= 1;
    }
}

#[allow(dead_code)]
fn main() {}