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

Function cloneElementWithValidation

code/communication/public/app.js:19698–19705  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

19696}
19697
19698function cloneElementWithValidation(element, props, children) {
19699 var newElement = cloneElement.apply(this, arguments);
19700 for (var i = 2; i < arguments.length; i++) {
19701 validateChildKeys(arguments[i], newElement.type);
19702 }
19703 validatePropTypes(newElement);
19704 return newElement;
19705}
19706
19707var React = {
19708 Children: {

Callers

nothing calls this directly

Calls 2

validateChildKeysFunction · 0.70
validatePropTypesFunction · 0.70

Tested by

no test coverage detected