docs/examples/basic.js
/**
	   * Given an element, validate that its props follow the propTypes definition,
	   * provided by the type.
	   *
	   * @param {ReactElement} element
	   */
Given an element, validate that its props follow the propTypes definition,
provided by the type.


Given an element validate that its props follow the propTypes definition provided by the type .
function validatePropTypes(element) {
				var componentClass = element.type;
				if (typeof componentClass !== 'function') {
					return;
				}
				var name = componentClass.displayName || componentClass.name;
				if (componentClass.propTypes) {
					checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name, element, null);
				}
				if (typeof componentClass.getDefaultProps === 'function') {
					process.env.NODE_ENV !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
				}
			}
function validatePropTypes ( element ) { var componentClass = element . type ; if ( typeof componentClass !== 'function' ) { return ; } var name = componentClass . displayName || componentClass . name ; if ( componentClass . propTypes ) { checkReactTypeSpec ( componentClass . propTypes , element . props , 'prop' , name , element , null ) ; } if ( typeof componentClass . getDefaultProps === 'function' ) { process . env . NODE_ENV !== 'production' ? warning ( componentClass . getDefaultProps . isReactClassApproved , 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.' ) : void 0 ; } }
Given an element, validate that its props follow the propTypes definition,
 provided by the type.
Given an element validate that its props follow the propTypes definition provided by the type .