function validateProps(element, props) {
  {
    // This mirrors the codepath above, but runs for hydration too.
    // Warn about invalid children here so that client and hydration are consistent.
    // TODO: this seems like it could cause a DEV-only throw for hydration
    // if children contains a non-element object. We should try to avoid that.
    if (typeof props.children === 'object' && props.children !== null) {
      React.Children.forEach(props.children, function (child) {
        if (child == null) {
          return;
        }
        if (typeof child === 'string' || typeof child === 'number') {
          return;
        }
        if (typeof child.type !== 'string') {
          return;
        }
        if (!didWarnInvalidChild) {
          didWarnInvalidChild = true;
          warning$1(false, 'Only strings and numbers are supported as <option> children.');
        }
      });
    }

    // TODO: Remove support for `selected` in <option>.
    if (props.selected != null && !didWarnSelectedSetOnOption) {
      warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
      didWarnSelectedSetOnOption = true;
    }
  }
}
function validateProps(element, props) {
  {
    
    
    
    
    if (typeof props.children === 'object' && props.children !== null) {
      React.Children.forEach(props.children, function (child) {
        if (child == null) {
          return;
        }
        if (typeof child === 'string' || typeof child === 'number') {
          return;
        }
        if (typeof child.type !== 'string') {
          return;
        }
        if (!didWarnInvalidChild) {
          didWarnInvalidChild = true;
          warning$1(false, 'Only strings and numbers are supported as <option> children.');
        }
      });
    }

    
    if (props.selected != null && !didWarnSelectedSetOnOption) {
      warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
      didWarnSelectedSetOnOption = true;
    }
  }
}
function validateProps ( element , props ) { { // This mirrors the codepath above, but runs for hydration too. // Warn about invalid children here so that client and hydration are consistent. // TODO: this seems like it could cause a DEV-only throw for hydration // if children contains a non-element object. We should try to avoid that. if ( typeof props . children === 'object' && props . children !== null ) { React . Children . forEach ( props . children , function ( child ) { if ( child == null ) { return ; } if ( typeof child === 'string' || typeof child === 'number' ) { return ; } if ( typeof child . type !== 'string' ) { return ; } if ( ! didWarnInvalidChild ) { didWarnInvalidChild = true ; warning$1 ( false , 'Only strings and numbers are supported as <option> children.' ) ; } } ) ; } // TODO: Remove support for `selected` in <option>. if ( props . selected != null && ! didWarnSelectedSetOnOption ) { warning$1 ( false , 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.' ) ; didWarnSelectedSetOnOption = true ; } } }
Implements an <option> host component that warns when `selected` is set.
Implements an <option > host component that warns when selected is set .