function validatePropertyKey(name, component, parentType) {
  if (!NUMERIC_PROPERTY_REGEX.test(name)) {
    return;
  }
  warnAndMonitorForKeyUse(
    'react_numeric_key_warning',
    'Child objects should have non-numeric keys so ordering is preserved.',
    component,
    parentType
  );
}
Warn if the key is being defined as an object property but has an incorrect
value.

@internal
@param {string} name Property name of the key.
@param {ReactComponent} component Component that requires a key.
@param {*} parentType component's parent's type.