Trait Component
sauron_vdom
pub trait Component<T>: Widget<T> + View<T> { fn subscribe(&mut self, f: Box<dyn Fn()>); }
This is the main app, the app routes whenever there is changes in the store this callback will be called
fn subscribe(&mut self, f: Box<dyn Fn()>)