Skip to content

Commit

Permalink
add function props
Browse files Browse the repository at this point in the history
  • Loading branch information
DougAnderson444 committed Nov 3, 2024
1 parent d178292 commit 372fb59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/counter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ impl Guest for Counter {
fn load() -> String {
r#"
<Vertical>
<Button on_click="increment()">Increment</Button>
<Button on_click="decrement()">Decrement</Button>
<Button on_click=increment()>Increment</Button>
<Button on_click=decrement()>Decrement</Button>
<Label>{count}</Label>
</Vertical>
"#
Expand Down

0 comments on commit 372fb59

Please sign in to comment.