How do I get a ReactComponent object? I found `cre...
# javascript
m
How do I get a ReactComponent object? I found
createElement
but it seems to require a type, props and children and I'm not sure how to get there. The docs indicate
val x = FC<Props> { ... }
should work (not sure if it creates a ReactComponent) but that also doesn't seem to work:
m
If you look at the comments of the issue you pulled those from, you'd see I've already commented that it doesn't work anymore.
t
Looks like you have missed
kotlin-react
dependency, where
FC
factory located. In examples (where
FC
factory used) you can find required dependency list.
m
ah I see, I had kotlin-react-core instead of kotlin-react