Skip to content

Commit a36d368

Browse files
authored
Update compose web example in README.md (#671)
closes #669
1 parent a4e2d22 commit a36d368

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/Web/Getting_Started/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ fun main() {
9696
renderComposable(rootElementId = "root") {
9797
Div(style = { padding(25.px) }) {
9898
Button(attrs = {
99-
onClick { count = count - 1 }
99+
onClick { count -= 1 }
100100
}) {
101101
Text("-")
102102
}
103103

104104
Span(style = { padding(15.px) }) {
105-
Text("${count}")
105+
Text("$count")
106106
}
107107

108108

109109
Button(attrs = {
110-
onClick { count = count + 1 }
110+
onClick { count += 1 }
111111
}) {
112112
Text("+")
113113
}

0 commit comments

Comments
 (0)