use crate::app::side_effect::Commands;
pub trait Update<Message, Command = ()> {
fn update(&mut self, msg: Message, _commands: &mut Commands<Command>) {
self.simple_update(msg);
}
fn simple_update(&mut self, _msg: Message) { }
}
impl<M> Update<(), ()> for M { }
pub trait Render<DomTree> {
fn render(&self) -> DomTree;
}