Home / Function/ getValueDescriptorExpectingObjectForWarning() — react Function Reference

getValueDescriptorExpectingObjectForWarning() — react Function Reference

Architecture documentation for the getValueDescriptorExpectingObjectForWarning() function in ReactDOMResourceValidation.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c49b6263_c156_f6f1_3cbc_6492dc1bf954["getValueDescriptorExpectingObjectForWarning()"]
  67f50fa6_411e_5d62_45b5_7c7e5640bc66["ReactDOMResourceValidation.js"]
  c49b6263_c156_f6f1_3cbc_6492dc1bf954 -->|defined in| 67f50fa6_411e_5d62_45b5_7c7e5640bc66
  style c49b6263_c156_f6f1_3cbc_6492dc1bf954 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js lines 65–75

export function getValueDescriptorExpectingObjectForWarning(
  thing: any,
): string {
  return thing === null
    ? '`null`'
    : thing === undefined
      ? '`undefined`'
      : thing === ''
        ? 'an empty string'
        : `something with type "${typeof thing}"`;
}

Domain

Subdomains

Frequently Asked Questions

What does getValueDescriptorExpectingObjectForWarning() do?
getValueDescriptorExpectingObjectForWarning() is a function in the react codebase, defined in packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js.
Where is getValueDescriptorExpectingObjectForWarning() defined?
getValueDescriptorExpectingObjectForWarning() is defined in packages/react-dom-bindings/src/shared/ReactDOMResourceValidation.js at line 65.

Analyze Your Own Codebase

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

Try Supermodel Free