diff --git a/Cargo.toml b/Cargo.toml index 74957dd..3fa1608 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] -seed = "^0.4.2" +seed = "^0.4.3" wasm-bindgen = "^0.2.50" # For serialization, eg sending requests to a server. Otherwise, not required. diff --git a/src/lib.rs b/src/lib.rs index 29fe346..b24303e 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,6 +43,6 @@ fn view(model: &Model) -> impl View { #[wasm_bindgen(start)] pub fn render() { - seed::App::build(|_, _| Init::new(Model::default()), update, view) + App::builder(update, view) .build_and_start(); } \ No newline at end of file