Browse Source

Update compose web example in README.md (#671)

closes #669
pull/685/head 0.4.0-build198
Alexander Perfilyev 4 years ago committed by GitHub
parent
commit
a36d36886c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tutorials/Web/Getting_Started/README.md

6
tutorials/Web/Getting_Started/README.md

@ -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("+")
}

Loading…
Cancel
Save