Updated for v0.3.2

master
DavidOConnor 6 years ago
parent 969830b56a
commit 9e1b35bbef

@ -10,9 +10,9 @@ crate-type = ["cdylib"]
[dependencies]
seed = "^0.3.1"
wasm-bindgen = "^0.2.40"
web-sys = "^0.3.17"
seed = "^0.3.2"
wasm-bindgen = "^0.2.42"
web-sys = "^0.3.19"
# For serialization, eg sending requests to a server. Otherwise, not required.
serde = { version = "^1.0.85", features = ['derive'] }

@ -35,13 +35,11 @@ fn update(msg: Msg, model: &mut Model) -> Update<Msg> {
// View
fn view(model: &Model) -> Vec<El<Msg>> {
vec![
fn view(model: &Model) -> El<Msg> {
button![
simple_ev(Ev::Click, Msg::Increment),
format!("Hello, World × {}", model.val)
]
]
}
#[wasm_bindgen]

Loading…
Cancel
Save