Updated for v0.3.2

master
DavidOConnor 6 years ago
parent 969830b56a
commit 9e1b35bbef

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

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

Loading…
Cancel
Save