MCPcopy Create free account
hub / github.com/microsoft/SandDance / cloneElementWithValidation

Function cloneElementWithValidation

docs/external/js/react.development.js:2037–2046  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

2035 return validatedFactory;
2036 }
2037 function cloneElementWithValidation(element, props, children) {
2038 var newElement = cloneElement.apply(this, arguments);
2039
2040 for (var i = 2; i < arguments.length; i++) {
2041 validateChildKeys(arguments[i], newElement.type);
2042 }
2043
2044 validatePropTypes(newElement);
2045 return newElement;
2046 }
2047
2048 var enableSchedulerDebugging = false;
2049 var enableProfiling = true;

Callers

nothing calls this directly

Calls 2

validateChildKeysFunction · 0.85
validatePropTypesFunction · 0.85

Tested by

no test coverage detected