Struct yew::html::App [] [src]

pub struct App<MSG> { /* fields omitted */ }

A context which contains a bridge to send a messages to a loop. Mostly services uses it.

Methods

impl<MSG: 'static> App<MSG>
[src]

[src]

Creates a context with connected sender and receiver.

[src]

Returns a cloned sender.

[src]

Alias to mount_to("body", ...).

[src]

The main entrypoint of a yew program. It works similar as program function in Elm. You should provide an initial model, update function which will update the state of the model and a view function which will render the model to a virtual DOM tree.