getId = (component) => {
  if (component._debugID) return { id: component._debugID, isDOM: true };
  if (component._domID) return { id: component._domID, isDOM: true };
  return { id: component._mountOrder * 100, isDOM: false };
}
Returns a React component's id, if any
@param {React Element} component