Updated for 0.5.1

master
David O'Connor 5 years ago
parent 901d3c6053
commit 7cb80b9e86

@ -10,7 +10,7 @@ crate-type = ["cdylib"]
[dependencies]
seed = "^0.5.0"
seed = "^0.5.1"
wasm-bindgen = "^0.2.50"
# For serialization, eg sending requests to a server. Otherwise, not required.

@ -1,8 +1,6 @@
use seed::{*, prelude::*};
// Model
struct Model {
pub val: i32,
}
@ -16,8 +14,6 @@ impl Default for Model {
}
// Update
#[derive(Clone)]
enum Msg {
Increment,
@ -30,8 +26,6 @@ fn update(msg: Msg, model: &mut Model, _: &mut impl Orders<Msg>) {
}
// View
fn view(model: &Model) -> impl View<Msg> {
button![
simple_ev(Ev::Click, Msg::Increment),

Loading…
Cancel
Save