MCPcopy Index your code
hub / github.com/caseywebdev/react-list / cloneAndReplaceKey

Function cloneAndReplaceKey

docs/index.js:129–138  ·  view source on GitHub ↗
(oldElement, newKey)

Source from the content-addressed store, hash-verified

127 };
128}
129function cloneAndReplaceKey(oldElement, newKey) {
130 return ReactElement(
131 oldElement.type,
132 newKey,
133 void 0,
134 void 0,
135 void 0,
136 oldElement.props
137 );
138}
139function isValidElement(object) {
140 return (
141 "object" === typeof object &&

Callers 1

mapIntoArrayFunction · 0.85

Calls 1

ReactElementFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…