Modified to support new routing system

master
DavidOConnor 6 years ago
parent c8df7d2c5a
commit a1db25a686

@ -9,7 +9,7 @@ edition = "2018"
crate-type = ["cdylib"]
[dependencies]
seed = "^0.1.7"
seed = "^0.1.8"
wasm-bindgen = "^0.2.29"
web-sys = "^0.3.6"

@ -27,7 +27,7 @@ enum Msg {
Increment,
}
fn update(history: &mut History<Model, Msg>, msg: Msg, model: Model) -> Model {
fn update(msg: Msg, model: Model) -> Model {
match msg {
Msg::Increment => Model {val: model.val + 1}
}

Loading…
Cancel
Save