Skip to content

Commit 374558a

Browse files
authored
Fix bug in example code
1 parent 49b6698 commit 374558a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/components.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class ComponentWithState {
317317
}
318318
view() {
319319
return m("div",
320-
m("p", "Count: " + count),
320+
m("p", "Count: ", this.count),
321321
m("button", {
322322
onclick: () => {this.increment()}
323323
}, "Increment"),

0 commit comments

Comments
 (0)