render

Function render 

Source
pub fn render<F, P>(element: F, container: P::Container) -> Disposable
where F: FnOnce() -> Element<P> + Send + 'static, P: Platform + ?Sized,
Expand description

This is the entry point of Polyhorn. This function renders an element into the given container. The returned instance must be retained. Once the returned is dropped, all UI will be unmounted.