reactive-signals 0.1.0-alpha.4

reactive-signals is a dx-first scope-based fine-grained reactive system.
Documentation
pub mod profile;
#[cfg(test)]
mod size_test;

use std::cell::RefCell;

pub struct StringStore(RefCell<Vec<String>>);

impl StringStore {
    pub fn new() -> Self {
        Self(RefCell::new(Vec::new()))
    }

    pub fn push(&self, value: String) {
        self.0.borrow_mut().push(value);
    }

    pub fn values(&self) -> String {
        self.0
            .borrow()
            .iter()
            .map(|s| s.to_owned())
            .collect::<Vec<String>>()
            .join(", ")
    }
}