From e4fac574ed3cbc083cfd5f2e922122330ff33d8e Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Sat, 5 Mar 2022 16:57:09 -0500 Subject: [PATCH] docs: fix readme and links --- README.md | 8 ++++---- examples/readme.rs | 8 +++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 246217e46..2f54dfac6 100644 --- a/README.md +++ b/README.md @@ -82,10 +82,10 @@ If you know React, then you already know Dioxus. - - - - + + + +
TutorialWebDesktopSSRMobileWebDesktopSSRMobile State
diff --git a/examples/readme.rs b/examples/readme.rs index e496dbad3..f5e07d5ba 100644 --- a/examples/readme.rs +++ b/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!" } }) }