dioxus/examples/web_component.rs

14 lines
197 B
Rust
Raw Normal View History

use dioxus::prelude::*;
fn main() {
dioxus_desktop::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
web-component {
"my-prop": "5%",
}
})
}