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

Function cloneElementWithValidation

code/third-party/public/app.js:18896–18903  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

18894}
18895
18896function cloneElementWithValidation(element, props, children) {
18897 var newElement = cloneElement.apply(this, arguments);
18898 for (var i = 2; i < arguments.length; i++) {
18899 validateChildKeys(arguments[i], newElement.type);
18900 }
18901 validatePropTypes(newElement);
18902 return newElement;
18903}
18904
18905var React = {
18906 Children: {

Callers

nothing calls this directly

Calls 2

validateChildKeysFunction · 0.70
validatePropTypesFunction · 0.70

Tested by

no test coverage detected