Big Chungus
02/04/2021, 8:17 AMandylamax
02/04/2021, 10:29 AMRClass while another returns a ReactElement . But they work and behave the sameBig Chungus
02/04/2021, 10:45 AMfunctionalComponent() over rFunction()??
// given
val A = functionalComponent<RProps>() {}
val B = rFunction<RProps>("B") {}
// usage
fun RBuilder.render() {
child(A) {
attrs {
...
}
}
B {
attrs {
...
}
}
}
B seems to be much easier to use and read...andylamax
02/04/2021, 10:48 AMReactElement (i.e. buildElement) and some methods need to you to pass or return RClass i.e. (RBuilder.child(el: RClass)). Use one or the other whenever you need emAkif Abasov [JB]
02/05/2021, 12:08 PMfunctionalComponent with adding hooks to wrappers because didn’t noticed that there’s rFunction that is functional component.Akif Abasov [JB]
02/05/2021, 12:14 PMrComponent to be similar with RComponent class. But there already are rFunction and functionalComponent , it think that i should deprecate rFunction and then remove it as less obvious and discoverable naming.Big Chungus
02/05/2021, 1:22 PMAkif Abasov [JB]
02/05/2021, 3:05 PMrComponent ?Big Chungus
02/05/2021, 3:29 PMBig Chungus
02/05/2021, 3:29 PMturansky
02/06/2021, 12:48 PMrComponent