Skip to content
Snippets Groups Projects
Unverified Commit a36d3688 authored by Alexander Perfilyev's avatar Alexander Perfilyev Committed by GitHub
Browse files

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

closes #669
parent a4e2d222
No related branches found
No related tags found
No related merge requests found
...@@ -96,18 +96,18 @@ fun main() { ...@@ -96,18 +96,18 @@ fun main() {
renderComposable(rootElementId = "root") { renderComposable(rootElementId = "root") {
Div(style = { padding(25.px) }) { Div(style = { padding(25.px) }) {
Button(attrs = { Button(attrs = {
onClick { count = count - 1 } onClick { count -= 1 }
}) { }) {
Text("-") Text("-")
} }
Span(style = { padding(15.px) }) { Span(style = { padding(15.px) }) {
Text("${count}") Text("$count")
} }
Button(attrs = { Button(attrs = {
onClick { count = count + 1 } onClick { count += 1 }
}) { }) {
Text("+") Text("+")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment