Returns a function used in propTypes to validate that children are of a specific component type.
function childrenComponentType(component: React.Component): function
component:React.Component
The expected component
A function which React will use to validate the component children.
class MyComponent extends React.Component {
static propTypes = {
children: childrenComponentType(MyOtherComponent)
}
}