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

Function cloneElementWithValidation

code/new-context-api/public/app.js:19024–19031  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

19022}
19023
19024function cloneElementWithValidation(element, props, children) {
19025 var newElement = cloneElement.apply(this, arguments);
19026 for (var i = 2; i < arguments.length; i++) {
19027 validateChildKeys(arguments[i], newElement.type);
19028 }
19029 validatePropTypes(newElement);
19030 return newElement;
19031}
19032
19033var React = {
19034 Children: {

Callers

nothing calls this directly

Calls 2

validateChildKeysFunction · 0.70
validatePropTypesFunction · 0.70

Tested by

no test coverage detected