Struct kagura::kagura::Kagura [−][src]
pub struct Kagura { /* fields omitted */ }
Expand description
The state of framework
Implementations
Mounts to root_node
root_node
- node to mountchildren
- Htmls to render
Example
pub fn main() {
let node = web_sys::window()
.unwrap()
.document()
.unwrap()
.get_element_by_id("app")
.unwrap();
Kagura::mount(node.into(), || {
vec![Html::h1(
Attributes::new(),
Events::new(),
vec![Html::text("Hello Kagura")],
)]
});
}