Skip to content

Commit

Permalink
[FIX] docs: code in example cannot run
Browse files Browse the repository at this point in the history
  • Loading branch information
haumenphai authored and sdegueldre committed Mar 14, 2024
1 parent 68f491c commit 9b18b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/reference/reactivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ This may seem counter-intuitive, but it makes perfect sense in the context of co
```js
class DoubleCounter extends Component {
static template = xml`
<t t-esc="state.selected + ': ' + state[state.selected].value"/>
<t t-esc="'selected: ' + state.selected + ', value: ' + state[state.selected]"/>
<button t-on-click="() => this.state.count1++">increment count 1</button>
<button t-on-click="() => this.state.count2++">increment count 2</button>
<button t-on-click="changeCounter">Switch counter</button>
Expand Down

0 comments on commit 9b18b57

Please sign in to comment.