Function yew::start_app_as_body[][src]

pub fn start_app_as_body<COMP>() -> AppHandle<COMP> where
    COMP: Component,
    COMP::Properties: Default
Expand description

The main entry point of a Yew application. Alternative to start_app which replaces the body element with a component which has a body element at the root of the HTML generated by its view method. Use this method when you need to manipulate the body element. For example, adding/removing app-wide CSS classes of the body element.