feat: link open in browser

This commit is contained in:
YuKun Liu committed 2022-01-18 09:19:12 +08:00
1 parent e84126ad16
commit a0f60152bc
4 files changed
+73 -1

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
use dioxus::prelude::*;
fn main() {
dioxus::desktop::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx! (
div {
p {
a {
href: "http://dioxuslabs.com/",
"default link"
}
}
p {
a {
href: "http://dioxuslabs.com/",
onclick: |_| {
println!("Hello Dioxus");
},
"custom event link",
}
}
}
))
}