What is the best way to handle optional React.PropType.func properties?
Should I provide default noop for it (if so what's the best way) or should I just check if the prop is defined?
propTypes: {
onClick: React.PropTypes.func
},
someMethod: function() {
if (this.props.onClick) {
this.props.onClick();
}
}