m
02/28/2018, 6:39 PMh3 {
ul {
for ((index, item) in state.items.withIndex()) {
li {
key = index.toString()
+item.toString()
button {
+"×"
attrs {
onClickFunction = {
setState {
items = items.filterIndexed { i, _ -> i != index }
}
}
}
}
}
}
}
}