Skip to content

Commit

Permalink
Update web tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Schahen committed Jun 1, 2021
1 parent 59470f3 commit de2ee4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tutorials/Web/Getting_Started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ pluginManagement {
``` kotlin
// Add compose gradle plugin
plugins {
kotlin("multiplatform") version "1.5.0"
id("org.jetbrains.compose") version "0.0.0-web-dev-13"
kotlin("multiplatform") version "1.5.10"
id("org.jetbrains.compose") version "0.0.0-web-dev-14"
}

// Add maven repositories
Expand Down Expand Up @@ -105,14 +105,14 @@ fun main() {
var count: Int by mutableStateOf(0)

renderComposable(rootElementId = "root") {
Div(style = { padding(25.px) }) {
Div({style { padding(25.px) }}) {
Button(attrs = {
onClick { count -= 1 }
}) {
Text("-")
}

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

Expand Down

0 comments on commit de2ee4c

Please sign in to comment.