Description
Bind an external component:
module StyledItemsList = {
@module("./styles") @react.component
external make: (~children: React.element, unit) => React.element = "StyledItemsList"
}
Use it with children:
<StyledItemsList>
{React.string("Hello")}
</StyledItemsList>
It's still reported as:
StyledItemsList.props.children is a record label never used to read a value
But I assume it should be automatically marked as live because it's sent into an external.