getDOMNode = ref => {
  if (!isReactDOMSupported()) {
    return ref && ref.getDOMNode();
  }
  return ref;
}
Support React 0.13 and greater where refs are React components, not DOM
nodes.
@param {*} ref React's ref.
@returns {Element} DOM element.