* Return a function that produces ReactElements of a given type. * See https://reactjs.org/docs/react-api.html#createfactory
(oldElement, newKey)
| 19011 | |
| 19012 | |
| 19013 | function cloneAndReplaceKey(oldElement, newKey) { |
| 19014 | var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); |
| 19015 | |
| 19016 | return newElement; |
| 19017 | } |
| 19018 | |
| 19019 | /** |
| 19020 | * Clone and return a new ReactElement using element as the starting point. |
no test coverage detected