better functions

This commit is contained in:
2025-01-11 23:58:53 +01:00
parent d4d4108714
commit a11bca5860
2 changed files with 34 additions and 32 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ fn App() {
rsx! {
%text { "Hello" }
button { on_click: fn (_, _, _) @count {
button { on_click: |_, _, _| @count {
count += 1
}, "World: {count}" }
}