Jeff Lockhart
11/17/2021, 1:16 AMUncaught TypeError: $this$child._get_attrs__0_k$()._set_baz__qlpr75_k$ is not a function.
fun main() {
render(document.getElementById("root")) {
child(app)
}
}
val app = fc<Props> {
child(foo) {
attrs.baz = "test"
}
}
interface Bar : Props {
var baz: String
}
val foo = fc<Bar> { props ->
+props.baz
}
It's erroring on the line attrs.baz = "test". Am I doing something wrong? I'm using version 17.0.2-pre.265-kotlin-1.5.31 of the Kotlin React wrappers.Jeff Lockhart
11/17/2021, 4:36 AMexternal interface for Props!