Applying defaultProps to the source or wrapped uncontrollable components does work, but if you examine the child props from a parent component, the defaultProps aren't present. Not sure what the best way to explain this is, here's a contrived example:
UncontrollableComponent.defaultProps = {
defaultProp: "thisDoesNotShow"
}
<ParentThatExaminesChildren>
<UncontrollableComponent explicitProp="thisShows"/>
</ParentThatExaminesChildren>
// child.props from parent only logs {explicitProp: "thisShows"}
Applying defaultProps to the source or wrapped uncontrollable components does work, but if you examine the child props from a parent component, the defaultProps aren't present. Not sure what the best way to explain this is, here's a contrived example:
Is this expected behaviour?