cess/lib.rs
1use yew::prelude::*;
2use wasm_bindgen::prelude::*;
3
4mod component;
5mod utils;
6
7// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global
8// allocator.
9#[cfg(feature = "wee_alloc")]
10#[global_allocator]
11static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
12
13#[wasm_bindgen(start)]
14pub fn run_app() {
15 App::<component::button::Button>::new().mount_to_body();
16}