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