[−][src]Function seed::run
pub fn run<Ms, Mdl>(
model: Mdl,
update: fn(_: Ms, _: Mdl) -> Mdl,
view: fn(_: App<Ms, Mdl>, _: Mdl) -> El<Ms>,
mount_point_id: &str,
routes: Option<HashMap<String, Ms>>,
window_events: Option<fn(_: Mdl) -> Vec<Listener<Ms>>>
) where
Ms: Clone + 'static,
Mdl: Clone + 'static,
App initialization: Collect its fundamental components, setup, and perform an initial render.