* Return a function that produces ReactElements of a given type. * See https://reactjs.org/docs/react-api.html#createfactory
(oldElement, newKey)
| 18867 | |
| 18868 | |
| 18869 | function cloneAndReplaceKey(oldElement, newKey) { |
| 18870 | var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); |
| 18871 | |
| 18872 | return newElement; |
| 18873 | } |
| 18874 | |
| 18875 | /** |
| 18876 | * Clone and return a new ReactElement using element as the starting point. |
no test coverage detected