samir
05/03/2018, 8:09 PMoverride fun RBuilder.render() {
val options = listOf("foo", "bar", "baz")
select {
attrs.value = "foo"
attrs.onChangeFunction = {}
options.forEach {
option {
key = it
attrs.value = it
+it
}
}
}
}
Warning: The value prop supplied to <select> must be a scalar value if multiple is false.
samir
05/04/2018, 4:02 PMattrs["value"] = state.value
attrs.value creates a set with a string