* Return a function that produces ReactElements of a given type. * See https://reactjs.org/docs/react-api.html#createfactory
(oldElement, newKey)
| 20217 | |
| 20218 | |
| 20219 | function cloneAndReplaceKey(oldElement, newKey) { |
| 20220 | var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); |
| 20221 | |
| 20222 | return newElement; |
| 20223 | } |
| 20224 | |
| 20225 | /** |
| 20226 | * Clone and return a new ReactElement using element as the starting point. |
no test coverage detected