[−][src]Trait sauron::dom::Component
The app should implement this trait for it to be handled by the Program
Required methods
fn update(&mut self, msg: MSG) -> Cmd<Self, MSG> where
Self: Sized + 'static,
Self: Sized + 'static,
Called each time an action is triggered from the view
fn view(&self) -> Node<MSG>
Returns a node on how the component is presented.