|
|
|
|
|
by mattigames
2614 days ago
|
|
Not convinced that's the case, with a bit of code splitting the view may end looking more like (pseudo-code): fn view(&self) -> Node<Msg> {
div(self.attributes(), self.content())
}
fn content(&self) -> Node<Msg> {
input([
class("client"), r#type("button"), value("Click me!"),
onclick(|_| {sauron::log("Button is clicked"); Msg::Click})
],[],)
}
|
|