function cloneAndReplaceKey(oldElement, newKey) {
  var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);

  return newElement;
}
Return a function that produces ReactElements of a given type.
See https://reactjs.org/docs/react-api.html#createfactory