docs: fix readme and links
This commit is contained in:
1 parent
57abeb5f4d
commit
e4fac574ed
2 files changed
+7
-9
No files matched your search
@@ -82,10 +82,10 @@ If you know React, then you already know Dioxus.
|
|||||||
<table style="width:100%" align="center">
|
<table style="width:100%" align="center">
|
||||||
<tr >
|
<tr >
|
||||||
<th><a href="https://dioxuslabs.com/guide/">Tutorial</a></th>
|
<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/web">Web</a></th>
|
||||||
<th><a href="https://dioxuslabs.com/reference/platforms/desktop/">Desktop</a></th>
|
<th><a href="https://dioxuslabs.com/reference/desktop/">Desktop</a></th>
|
||||||
<th><a href="https://dioxuslabs.com/reference/platforms/ssr/">SSR</a></th>
|
<th><a href="https://dioxuslabs.com/reference/ssr/">SSR</a></th>
|
||||||
<th><a href="https://dioxuslabs.com/reference/platforms/mobile/">Mobile</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>
|
<th><a href="https://dioxuslabs.com/guide/concepts/managing_state.html">State</a></th>
|
||||||
<tr>
|
<tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
+3
-5
@@ -12,10 +12,8 @@ fn app(cx: Scope) -> Element {
|
|||||||
let count = use_state(&cx, || 0);
|
let count = use_state(&cx, || 0);
|
||||||
|
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div {
|
h1 { "High-Five counter: {count}" }
|
||||||
h1 { "High-Five counter: {count}" }
|
button { onclick: move |_| count.set(count + 1), "Up high!" }
|
||||||
button { onclick: move |_| count.set(count + 1), "Up high!" }
|
button { onclick: move |_| count.set(count - 1), "Down low!" }
|
||||||
button { onclick: move |_| count.set(count - 1), "Down low!" }
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user