leptos-use/examples/use_element_bounding/src/main.rs

21 lines
361 B
Rust
Raw Normal View History

2023-12-13 14:58:07 +00:00
use leptos::*;
use leptos_use::docs::demo_or_body;
use leptos_use::use_element_bounding;
#[component]
fn Demo() -> impl IntoView {
use_element_bounding();
view! { }
}
fn main() {
_ = console_log::init_with_level(log::Level::Debug);
console_error_panic_hook::set_once();
mount_to(demo_or_body(), || {
view! { <Demo/> }
})
}