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

Function cloneElementWithValidation

code/styling/public/app.js:19663–19670  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

19661}
19662
19663function cloneElementWithValidation(element, props, children) {
19664 var newElement = cloneElement.apply(this, arguments);
19665 for (var i = 2; i < arguments.length; i++) {
19666 validateChildKeys(arguments[i], newElement.type);
19667 }
19668 validatePropTypes(newElement);
19669 return newElement;
19670}
19671
19672var React = {
19673 Children: {

Callers

nothing calls this directly

Calls 2

validateChildKeysFunction · 0.70
validatePropTypesFunction · 0.70

Tested by

no test coverage detected