Home / Function/ warnStyleValueIsInfinity() — react Function Reference

warnStyleValueIsInfinity() — react Function Reference

Architecture documentation for the warnStyleValueIsInfinity() function in warnValidStyle.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  9dce185f_3747_d592_cd22_f639ac5cf61c["warnStyleValueIsInfinity()"]
  cfe6bc57_232a_91d7_3473_273355d04b5b["warnValidStyle.js"]
  9dce185f_3747_d592_cd22_f639ac5cf61c -->|defined in| cfe6bc57_232a_91d7_3473_273355d04b5b
  a301cb19_309d_31b8_cdc3_598aa3af82be["warnValidStyle()"]
  a301cb19_309d_31b8_cdc3_598aa3af82be -->|calls| 9dce185f_3747_d592_cd22_f639ac5cf61c
  style 9dce185f_3747_d592_cd22_f639ac5cf61c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/shared/warnValidStyle.js lines 90–102

function warnStyleValueIsInfinity(name, value) {
  if (__DEV__) {
    if (warnedForInfinityValue) {
      return;
    }

    warnedForInfinityValue = true;
    console.error(
      '`Infinity` is an invalid value for the `%s` css style property.',
      name,
    );
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does warnStyleValueIsInfinity() do?
warnStyleValueIsInfinity() is a function in the react codebase, defined in packages/react-dom-bindings/src/shared/warnValidStyle.js.
Where is warnStyleValueIsInfinity() defined?
warnStyleValueIsInfinity() is defined in packages/react-dom-bindings/src/shared/warnValidStyle.js at line 90.
What calls warnStyleValueIsInfinity()?
warnStyleValueIsInfinity() is called by 1 function(s): warnValidStyle.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free