Alexander Weickmann
05/28/2019, 9:19 AMdata class ModalComponents(
var Header: dynamic = undefined,
var Footer: dynamic = undefined,
var Body: dynamic = undefined,
var Container: dynamic = undefined
)
And I use it like this:
attrs.components = ModalComponents(
Footer = MyFooterComponent()
)
This leads to the following error message:
"Uncaught Invariant Violation: ModalFooter(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null."
In the original JS code, I can see that MyFooterComponent will be used like this within render:
return createElement(component, {
appearance: appearance,
onClose: onClose,
showKeyline: showKeyline
});
So instead of Footer = MyFooterComponent(), I need to pass it something that is acceptible as the first parameter of createElement, but I have no clue what that would need to be ...