(oldElement, newKey)
| 892 | return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); |
| 893 | } |
| 894 | function cloneAndReplaceKey(oldElement, newKey) { |
| 895 | var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); |
| 896 | return newElement; |
| 897 | } |
| 898 | /** |
| 899 | * Clone and return a new ReactElement using element as the starting point. |
| 900 | * See https://reactjs.org/docs/react-api.html#cloneelement |
no test coverage detected