Big Chungus
11/25/2020, 11:27 AM#1
fun RBuilder.Component(prop1:String, prop2:String) {}
#2
interface ComponentProps: RProps {
var prop1: String
var prop2: String
}
val Component = rFunction<ComponentProps>("Component"){}
Marc Knaup
11/25/2020, 12:10 PMBig Chungus
11/25/2020, 12:10 PMMarc Knaup
11/25/2020, 12:11 PMBig Chungus
11/25/2020, 12:15 PMMarc Knaup
11/25/2020, 12:15 PMBig Chungus
11/25/2020, 12:15 PMBig Chungus
11/25/2020, 12:50 PMrFunction
is unusable with IR. When doing
interface ComponentProps: RProps {
var prop1: String
var prop2: String
}
val Component = rFunction<ComponentProps>("Component"){}
fun RBuilder.test() = Component {
attrs {
prop1 = "a"
prop2 = "b"
}
}
I'm getting this_0_.setProp1() is not a function
Marc Knaup
11/25/2020, 1:14 PMexternal interface
Big Chungus
11/25/2020, 1:25 PMMarc Knaup
11/25/2020, 1:27 PM