MCPcopy Create free account
hub / github.com/Lobos/react-ui / warnValidStyle

Function warnValidStyle

docs/lib/react.js:673–689  ·  view source on GitHub ↗
(name, value, component)

Source from the content-addressed store, hash-verified

671 * @param {ReactDOMComponent} component
672 */
673 var warnValidStyle = function (name, value, component) {
674 var owner;
675 if (component) {
676 owner = component._currentElement._owner;
677 }
678 if (name.indexOf('-') > -1) {
679 warnHyphenatedStyleName(name, owner);
680 } else if (badVendoredStyleNamePattern.test(name)) {
681 warnBadVendoredStyleName(name, owner);
682 } else if (badStyleValueWithSemicolonPattern.test(value)) {
683 warnStyleValueWithSemicolon(name, value, owner);
684 }
685
686 if (typeof value === 'number' && isNaN(value)) {
687 warnStyleValueIsNaN(name, value, owner);
688 }
689 };
690}
691
692/**

Callers 1

react.jsFile · 0.85

Calls 4

warnHyphenatedStyleNameFunction · 0.85
warnBadVendoredStyleNameFunction · 0.85
warnStyleValueIsNaNFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…