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

Function cloneElementWithValidation

code/composition/public/app.js:19801–19808  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

19799}
19800
19801function cloneElementWithValidation(element, props, children) {
19802 var newElement = cloneElement.apply(this, arguments);
19803 for (var i = 2; i < arguments.length; i++) {
19804 validateChildKeys(arguments[i], newElement.type);
19805 }
19806 validatePropTypes(newElement);
19807 return newElement;
19808}
19809
19810var React = {
19811 Children: {

Callers

nothing calls this directly

Calls 2

validateChildKeysFunction · 0.70
validatePropTypesFunction · 0.70

Tested by

no test coverage detected