code: function validatePropTypes(element) {
    var componentClass = element.type;
    if (typeof componentClass !== 'function') {
      return;
    }
    var name = componentClass.displayName || componentClass.name;
    var propTypes = componentClass.propTypes;
  
    if (propTypes) {
      currentlyValidatingElement = element;
      checkPropTypes$1(propTypes, element.props, 'prop', name, getStackAddendum$1);
      currentlyValidatingElement = null;
    }
    if (typeof componentClass.getDefaultProps === 'function') {
      warning$3(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
    }
  }
docs: Given an element, validate that its props follow the propTypes definition,
  provided by the type.
  
  @param {ReactElement} element