docs: fix readme and links

This commit is contained in:
Jonathan Kelley committed 2022-03-05 16:57:09 -05:00
1 parent 57abeb5f4d
commit e4fac574ed
2 files changed
+7 -9

No files matched your search

+4 -4
View File
@@ -82,10 +82,10 @@ If you know React, then you already know Dioxus.
<table style="width:100%" align="center">
<tr >
<th><a href="https://dioxuslabs.com/guide/">Tutorial</a></th>
<th><a href="https://dioxuslabs.com/reference/platforms/web">Web</a></th>
<th><a href="https://dioxuslabs.com/reference/platforms/desktop/">Desktop</a></th>
<th><a href="https://dioxuslabs.com/reference/platforms/ssr/">SSR</a></th>
<th><a href="https://dioxuslabs.com/reference/platforms/mobile/">Mobile</a></th>
<th><a href="https://dioxuslabs.com/reference/web">Web</a></th>
<th><a href="https://dioxuslabs.com/reference/desktop/">Desktop</a></th>
<th><a href="https://dioxuslabs.com/reference/ssr/">SSR</a></th>
<th><a href="https://dioxuslabs.com/reference/mobile/">Mobile</a></th>
<th><a href="https://dioxuslabs.com/guide/concepts/managing_state.html">State</a></th>
<tr>
</table>
+3 -5
View File
@@ -12,10 +12,8 @@ fn app(cx: Scope) -> Element {
let count = use_state(&cx, || 0);
cx.render(rsx! {
div {
h1 { "High-Five counter: {count}" }
button { onclick: move |_| count.set(count + 1), "Up high!" }
button { onclick: move |_| count.set(count - 1), "Down low!" }
}
h1 { "High-Five counter: {count}" }
button { onclick: move |_| count.set(count + 1), "Up high!" }
button { onclick: move |_| count.set(count - 1), "Down low!" }
})
}