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

Commit acd5fb3

Browse files
authored
Update state.rst
1 parent 53cab89 commit acd5fb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

state.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Any changes to the KVar will be reflected in realtime in the browser, and simila
9090
.. code-block:: kotlin
9191
9292
Kweb(port = 2395) {
93-
doc.body.new {
93+
doc.body {
9494
p().text("What is your name?")
9595
val clickMe = input(type = text)
9696
val nameKVar = KVar("Peter Pan")
@@ -117,9 +117,9 @@ function comes in:
117117
val list = KVar(listOf("one", "two", "three"))
118118
119119
Kweb(port = 16097) {
120-
doc.body.new {
120+
doc.body {
121121
render(list) { rList ->
122-
ul().new {
122+
ul {
123123
for (item in rList) {
124124
li().text(item)
125125
}

0 commit comments

Comments
 (0)