Home / Function/ isElement() — react Function Reference

isElement() — react Function Reference

Architecture documentation for the isElement() function in ReactIs.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  b12ce5b9_ef9e_1b47_aca1_624cc703431c["isElement()"]
  dfae0a13_bd8b_97d9_0260_bcccc6acd4f8["ReactIs.js"]
  b12ce5b9_ef9e_1b47_aca1_624cc703431c -->|defined in| dfae0a13_bd8b_97d9_0260_bcccc6acd4f8
  style b12ce5b9_ef9e_1b47_aca1_624cc703431c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-is/src/ReactIs.js lines 139–145

export function isElement(object: any): boolean {
  return (
    typeof object === 'object' &&
    object !== null &&
    object.$$typeof === REACT_ELEMENT_TYPE
  );
}

Domain

Subdomains

Frequently Asked Questions

What does isElement() do?
isElement() is a function in the react codebase, defined in packages/react-is/src/ReactIs.js.
Where is isElement() defined?
isElement() is defined in packages/react-is/src/ReactIs.js at line 139.

Analyze Your Own Codebase

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

Try Supermodel Free