(oldElement, newKey)
| 1198 | return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); |
| 1199 | } |
| 1200 | function cloneAndReplaceKey(oldElement, newKey) { |
| 1201 | var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); |
| 1202 | return newElement; |
| 1203 | } |
| 1204 | /** |
| 1205 | * Clone and return a new ReactElement using element as the starting point. |
| 1206 | * See https://reactjs.org/docs/react-api.html#cloneelement |
no test coverage detected