瀏覽代碼

docs: fix readme and links

Jonathan Kelley 3 年之前
父節點
當前提交
e4fac574ed
共有 2 個文件被更改,包括 7 次插入9 次删除
  1. 4 4
      README.md
  2. 3 5
      examples/readme.rs

+ 4 - 4
README.md

@@ -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
examples/readme.rs

@@ -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!" }
     })
 }