Home / Function/ if() — react Function Reference

if() — react Function Reference

Architecture documentation for the if() function in ProfilerStore.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  ec4c1b74_c8d1_a615_58d8_99ffb6e7ecc3["if()"]
  3fc29544_4278_4ce9_4b80_afb09671b539["ProfilerStore"]
  ec4c1b74_c8d1_a615_58d8_99ffb6e7ecc3 -->|defined in| 3fc29544_4278_4ce9_4b80_afb09671b539
  style ec4c1b74_c8d1_a615_58d8_99ffb6e7ecc3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/devtools/ProfilerStore.js lines 112–120

    if (this._dataFrontend !== null) {
      const dataForRoot = this._dataFrontend.dataForRoots.get(rootID);
      if (dataForRoot != null) {
        const commitDatum = dataForRoot.commitData[commitIndex];
        if (commitDatum != null) {
          return commitDatum;
        }
      }
    }

Domain

Subdomains

Frequently Asked Questions

What does if() do?
if() is a function in the react codebase, defined in packages/react-devtools-shared/src/devtools/ProfilerStore.js.
Where is if() defined?
if() is defined in packages/react-devtools-shared/src/devtools/ProfilerStore.js at line 112.

Analyze Your Own Codebase

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

Try Supermodel Free