Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
Update state.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 8, 2020
1 parent 53cab89 commit acd5fb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions state.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Any changes to the KVar will be reflected in realtime in the browser, and simila
.. code-block:: kotlin
Kweb(port = 2395) {
doc.body.new {
doc.body {
p().text("What is your name?")
val clickMe = input(type = text)
val nameKVar = KVar("Peter Pan")
Expand All @@ -117,9 +117,9 @@ function comes in:
val list = KVar(listOf("one", "two", "three"))
Kweb(port = 16097) {
doc.body.new {
doc.body {
render(list) { rList ->
ul().new {
ul {
for (item in rList) {
li().text(item)
}
Expand Down

0 comments on commit acd5fb3

Please sign in to comment.