From a36d36886c115c71ffc4776fc36788931c02cab0 Mon Sep 17 00:00:00 2001 From: Alexander Perfilyev Date: Mon, 17 May 2021 12:30:30 +0300 Subject: [PATCH] Update compose web example in README.md (#671) closes #669 --- tutorials/Web/Getting_Started/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/Web/Getting_Started/README.md b/tutorials/Web/Getting_Started/README.md index 01c3921426a..3c70cd54774 100644 --- a/tutorials/Web/Getting_Started/README.md +++ b/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("+") }