* Return a function that produces ReactElements of a given type. * See https://reactjs.org/docs/react-api.html#createfactory
(oldElement, newKey)
| 18106 | |
| 18107 | |
| 18108 | function cloneAndReplaceKey(oldElement, newKey) { |
| 18109 | var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); |
| 18110 | |
| 18111 | return newElement; |
| 18112 | } |
| 18113 | |
| 18114 | /** |
| 18115 | * Clone and return a new ReactElement using element as the starting point. |
no test coverage detected