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