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

Function cloneElementWithValidation

code/redux/public/app.js:21007–21014  ·  view source on GitHub ↗
(element, props, children)

Source from the content-addressed store, hash-verified

21005}
21006
21007function cloneElementWithValidation(element, props, children) {
21008 var newElement = cloneElement.apply(this, arguments);
21009 for (var i = 2; i < arguments.length; i++) {
21010 validateChildKeys(arguments[i], newElement.type);
21011 }
21012 validatePropTypes(newElement);
21013 return newElement;
21014}
21015
21016var React = {
21017 Children: {

Callers

nothing calls this directly

Calls 2

validateChildKeysFunction · 0.70
validatePropTypesFunction · 0.70

Tested by

no test coverage detected