Big Chungus
12/01/2020, 9:52 AMandylamax
12/01/2020, 3:56 PMBig Chungus
12/01/2020, 4:01 PMprivate class Komponent: RComponent<RState, RProps> {...}
@JsExport
fun MyKomponent(props: RProps): RComponent<RState, RProps> = Komponent(...) // Or however you normally initialise it in kotlin react. Important bit is that you return your component downcasted as RComponent<RState, RProps>andylamax
12/01/2020, 4:04 PM@JsExport if you won't, your component's methods, get mangled and minified. You get errors like el.render is not a functionBig Chungus
12/01/2020, 4:07 PMinternal class?Big Chungus
12/01/2020, 4:07 PMandylamax
12/01/2020, 4:07 PMandylamax
12/01/2020, 4:08 PM@PublishedApi a try.Big Chungus
12/01/2020, 4:08 PMandylamax
12/01/2020, 4:08 PMandylamax
12/01/2020, 4:09 PMandylamax
12/02/2020, 2:48 AMinternal and @PublishedApi . It doesn't work tooandylamax
12/02/2020, 2:48 AMandylamax
12/02/2020, 2:51 AM