updated readme example code
@@ -122,7 +122,7 @@ enum Msg {
}
/// How we update the model
-fn update(msg: Msg, model: &mut Model, _orders: &mut Orders<Msg>) {
+fn update(msg: Msg, model: &mut Model, _orders: &mut impl Orders<Msg>) {
match msg {
Msg::Increment => model.count += 1,
Msg::Decrement => model.count -= 1,
@@ -182,7 +182,7 @@ fn view(model: &Model) -> impl View<Msg> {
#[wasm_bindgen(start)]
pub fn render() {
- seed::App::build(Model::default(), update, view)
+ seed::App::build(|_, _| Model::default(), update, view)
.finish()
.run();
}
