Home / Function/ DuplicateWarningsAndErrors() — react Function Reference

DuplicateWarningsAndErrors() — react Function Reference

Architecture documentation for the DuplicateWarningsAndErrors() function in index.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  e5767e9e_454a_40e8_5067_702097f42148["DuplicateWarningsAndErrors()"]
  a0507bb6_7cf5_071e_db51_f9f50de2969a["index.js"]
  e5767e9e_454a_40e8_5067_702097f42148 -->|defined in| a0507bb6_7cf5_071e_db51_f9f50de2969a
  style e5767e9e_454a_40e8_5067_702097f42148 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shell/src/app/InlineWarnings/index.js lines 149–155

function DuplicateWarningsAndErrors({children = null}) {
  console.warn('this warning is logged twice per render');
  console.warn('this warning is logged twice per render');
  console.error('this error is logged twice per render');
  console.error('this error is logged twice per render');
  return <div data-camelCasedAttribute="should-lower-case">{children}</div>;
}

Domain

Subdomains

Frequently Asked Questions

What does DuplicateWarningsAndErrors() do?
DuplicateWarningsAndErrors() is a function in the react codebase, defined in packages/react-devtools-shell/src/app/InlineWarnings/index.js.
Where is DuplicateWarningsAndErrors() defined?
DuplicateWarningsAndErrors() is defined in packages/react-devtools-shell/src/app/InlineWarnings/index.js at line 149.

Analyze Your Own Codebase

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

Try Supermodel Free