Simplify the app bootstrapping
This commit is contained in:
parent
0808252ad2
commit
6cc1a9e967
|
@ -1,13 +1,10 @@
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "256"]
|
||||||
|
|
||||||
use wasm_bindgen::prelude::*;
|
|
||||||
use yew::prelude::*;
|
|
||||||
|
|
||||||
mod components;
|
mod components;
|
||||||
|
|
||||||
use components::Root;
|
use wasm_bindgen::prelude::*;
|
||||||
|
|
||||||
#[wasm_bindgen(start)]
|
#[wasm_bindgen(start)]
|
||||||
pub fn run_app() {
|
pub fn run_app() {
|
||||||
App::<Root>::new().mount_to_body();
|
yew::start_app::<components::Root>();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue