Hello, I am trying to work with react library call...
# react
b
Hello, I am trying to work with react library called material-ui. I created a fresh kotlin-react project and installed material-ui. I created
@JsModule("material-ui/Checkbox") external val mCheckbox: RClass<RProps>
to target a basic component. Before using the checkbox, the application compiles. However when I place the component into a render function of the App class, I receive the following exception being thrown:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
. Has anyone come across such an error? Why is react interpreting material-ui/Checkbox as an object and not a class/function?