pub fn render<E>(root: HtmlElement, element: Element<HtmlNode, E>)Expand description
Use the render-function to construct the DOM for a component completely on the client. Pass it your bloom-component and the root HtmlElement to render it into.
use bloom_client::{render, get_element_by_id};
use bloom_rsx::rsx;
#[wasm_bindgen(start)]
fn run() {
render(get_element_by_id("root").unwrap(), rsx!(<MyComponent />));
}