polish: clean up the examples and move autofmt sample into dedicated file
This commit is contained in:
1 parent
0aec375371
commit
28a0c67275
5 files changed
+251
-508
No files matched your search
@@ -11,14 +11,6 @@ fn main() {
|
||||
fn app(cx: Scope) -> Element {
|
||||
let mut count = use_state(&cx, || 0);
|
||||
|
||||
let a = rsx! {
|
||||
div {
|
||||
|
||||
|
||||
key: "a"
|
||||
}
|
||||
};
|
||||
|
||||
cx.render(rsx! {
|
||||
h1 { "High-Five counter: {count}" }
|
||||
button { onclick: move |_| count += 1, "Up high!" }
|
||||
|
||||
Reference in new issue
Block a user