Type Definition bounce::BounceRoot

source · []
pub type BounceRoot = FunctionComponent<bounce_root>;
Expand description

A <BounceRoot />.

For bounce states to function, A <BounceRoot /> must present and registered as a context provider.

Example

#[function_component(App)]
fn app() -> Html {
    html! {
        <BounceRoot>
            // children...
        </BounceRoot>
    }
}