Follow-on (but distinct) Kotlin React/JS question:...
# javascript
m
Follow-on (but distinct) Kotlin React/JS question: it seems like the spread operator is not supported ( https://discuss.kotlinlang.org/t/js-function-not-support-spread-operator/17335/10) . Is there a way to efficiently pass all props from a parent component to a child component? e.g. to avoid having to manually write out all the props here:
Copy code
asDynamic().renderInput = { it: BaseTextFieldProps ->
            TextField.create {
                onClick = it.onClick
                value = it.value
                label = it.label
            }
        }
t
plus
operator supported
Copy code
renderInput = { params: BaseTextFieldProps ->
            TextField.create {
                +params
            }
        }
👍 2
m
Amazing, thank you!