Closed serjek closed 5 years ago
Turns out that adding ref=""
to component like this jsx(<CustomScene ref=""/>);
solves the issue, although this is not obvious, so I'm keeping issue open.
The jsx macro has changed a lot and let me assume this is obsolete.
Expected ref to be a function or a string error appears when trying
jsx(<CustomScene/>);
Registering CustomScene as app will work fine; jsx of some default component (say,View
) also works fine. Problem is with custom components that extend ReactComponent in haxe.