Simplify the app bootstrapping

This commit is contained in:
Paul van Tilburg 2020-07-16 17:02:38 +02:00
parent 0808252ad2
commit 6cc1a9e967
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 2 additions and 5 deletions

View File

@ -1,13 +1,10 @@
#![recursion_limit = "256"]
use wasm_bindgen::prelude::*;
use yew::prelude::*;
mod components;
use components::Root;
use wasm_bindgen::prelude::*;
#[wasm_bindgen(start)]
pub fn run_app() {
App::<Root>::new().mount_to_body();
yew::start_app::<components::Root>();
}