Skip to content

Commit

Permalink
Update compose web example in README.md (#671)
Browse files Browse the repository at this point in the history
closes #669
  • Loading branch information
aperfilyev authored May 17, 2021
1 parent a4e2d22 commit a36d368
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorials/Web/Getting_Started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,18 @@ fun main() {
renderComposable(rootElementId = "root") {
Div(style = { padding(25.px) }) {
Button(attrs = {
onClick { count = count - 1 }
onClick { count -= 1 }
}) {
Text("-")
}

Span(style = { padding(15.px) }) {
Text("${count}")
Text("$count")
}


Button(attrs = {
onClick { count = count + 1 }
onClick { count += 1 }
}) {
Text("+")
}
Expand Down

0 comments on commit a36d368

Please sign in to comment.