I\'m getting this weird warning message in the console for my React app.
Warning: Failed propType: checker is not a function Check the render method of <
My version of Warning: Failed propType: checker is not a function
came from forgetting to use PropTypes.shape for an object.
Changing:
someProps: {
prop: React.PropTypes.string,
anotherProp: React.PropTypes.number,
}
to this fixed the problem:
someProps: React.PropTypes.shape({
prop: React.PropTypes.string,
anotherProp: React.PropTypes.number,
})