pub trait Application: Component {
    fn init(comp: &Comp<Self>) -> Self;

    fn init_router(
        _comp: &Comp<Self>
    ) -> Option<<<Self as Component>::Routes as Routes>::Router> { ... } fn mount_to_element(root: Element) { ... } fn mount_to(id: &str) { ... } fn mount_to_body() { ... } }

Required Methods

Provided Methods

If your Component::Routes is not (), you must override this to provide the actual router instance

Implementors