[−][src]Function polyhorn_core::render
pub fn render<F, P: ?Sized>(element: F, container: P::Container) -> Disposable where
F: FnOnce() -> Element<P> + Send + 'static,
P: Platform,
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.