getKey = (component) => {
  if (component._currentElement && component._currentElement.key) return component._currentElement.key;
  return null;
}
Returns a React component's key, if any
@param {React Element} component