fix: some examples

This commit is contained in:
Jonathan Kelley committed 2022-03-05 15:25:09 -05:00
1 parent f98c3f161f
commit 35b22923b2
7 files changed
+63 -44

No files matched your search

+14 -2
View File
@@ -10,7 +10,7 @@ fn app(cx: Scope) -> Element {
p {
a {
href: "http://dioxuslabs.com/",
"default link"
"Default link - links outside of your app"
}
}
p {
@@ -20,7 +20,19 @@ fn app(cx: Scope) -> Element {
onclick: |_| {
println!("Hello Dioxus");
},
"custom event link",
"Custom event link - links inside of your app",
}
}
}
div {
Router {
Route { to: "/", h1 { "Home" } },
Route { to: "/settings", h1 { "settings" } },
p { "----"}
ul {
Link { to: "/", li { "Router link to home" } },
Link { to: "/settings", li { "Router link to settings" } },
}
}
}