MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / cloneElementWithValidation

Function cloneElementWithValidation

code/event-handlers/public/app.js:18993–19000  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

18991}
18992
18993function cloneElementWithValidation(element, props, children) {
18994 var newElement = cloneElement.apply(this, arguments);
18995 for (var i = 2; i < arguments.length; i++) {
18996 validateChildKeys(arguments[i], newElement.type);
18997 }
18998 validatePropTypes(newElement);
18999 return newElement;
19000}
19001
19002var React = {
19003 Children: {

Callers

nothing calls this directly

Calls 2

validateChildKeysFunction · 0.70
validatePropTypesFunction · 0.70

Tested by

no test coverage detected