fix more examples
This commit is contained in:
1 parent
db35a9b48c
commit
407a82588a
59 files changed
+166
-195
No files matched your search
@@ -60,11 +60,7 @@ fn app(cx: Scope<AppProps>) -> Element {
|
||||
|
||||
rsx! {
|
||||
h1 { "hello axum! {count}" }
|
||||
button {
|
||||
class: "increment-button",
|
||||
onclick: move |_| count += 1,
|
||||
"Increment"
|
||||
}
|
||||
button { class: "increment-button", onclick: move |_| count += 1, "Increment" }
|
||||
button {
|
||||
class: "server-button",
|
||||
onclick: move |_| {
|
||||
@@ -80,7 +76,7 @@ fn app(cx: Scope<AppProps>) -> Element {
|
||||
"Run a server function!"
|
||||
}
|
||||
"Server said: {text}"
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
#[server(PostServerData)]
|
||||
|
||||
Reference in new issue
Block a user