Can I use PropTypes in container components?
Typically, in container components, I connect to the redux store and get my own data but there are cases when I want to pass additional props from a parent component. In such cases, I want to make sure that I get all the data I need by using PropTypes. For example:
MyComponent.PropTypes = { someObject: PropTypes.object.isRequired } I haven't seen any examples of PropTypes being used in container components so I'm not sure if I can or not.