MCPcopy Create free account
hub / github.com/caseywebdev/react-list / validateProperties$2

Function validateProperties$2

docs/index.js:21444–21466  ·  view source on GitHub ↗
(type, props)

Source from the content-addressed store, hash-verified

21442 return !0;
21443 }
21444 function validateProperties$2(type, props) {
21445 var invalidProps = [],
21446 key;
21447 for (key in props)
21448 validateProperty$1(type, key) || invalidProps.push(key);
21449 props = invalidProps
21450 .map(function (prop) {
21451 return "`" + prop + "`";
21452 })
21453 .join(", ");
21454 1 === invalidProps.length
21455 ? console.error(
21456 "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
21457 props,
21458 type
21459 )
21460 : 1 < invalidProps.length &&
21461 console.error(
21462 "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
21463 props,
21464 type
21465 );
21466 }
21467 function validateProperty(tagName, name, value, eventRegistry) {
21468 if (hasOwnProperty.call(warnedProperties, name) && warnedProperties[name])
21469 return !0;

Callers 1

Calls 1

validateProperty$1Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…