Home / Function/ getOwner() — react Function Reference

getOwner() — react Function Reference

Architecture documentation for the getOwner() function in ReactJSXElement.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  5c6da8c1_f2fa_cf23_63c2_fe9e5615d850["getOwner()"]
  1bf5591f_27a1_c79f_853a_6242549e0e07["ReactJSXElement.js"]
  5c6da8c1_f2fa_cf23_63c2_fe9e5615d850 -->|defined in| 1bf5591f_27a1_c79f_853a_6242549e0e07
  541966e9_c9c6_423b_909d_7502d44146b3["jsxProd()"]
  541966e9_c9c6_423b_909d_7502d44146b3 -->|calls| 5c6da8c1_f2fa_cf23_63c2_fe9e5615d850
  ad281e06_8a7d_3988_f68c_33f816bae40c["jsxDEVImpl()"]
  ad281e06_8a7d_3988_f68c_33f816bae40c -->|calls| 5c6da8c1_f2fa_cf23_63c2_fe9e5615d850
  12bdbda4_5438_2837_0178_e722d4b02c99["createElement()"]
  12bdbda4_5438_2837_0178_e722d4b02c99 -->|calls| 5c6da8c1_f2fa_cf23_63c2_fe9e5615d850
  e25f8b64_9c1b_41a7_d00a_3663a86ab332["cloneElement()"]
  e25f8b64_9c1b_41a7_d00a_3663a86ab332 -->|calls| 5c6da8c1_f2fa_cf23_63c2_fe9e5615d850
  style 5c6da8c1_f2fa_cf23_63c2_fe9e5615d850 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react/src/jsx/ReactJSXElement.js lines 50–59

function getOwner() {
  if (__DEV__) {
    const dispatcher = ReactSharedInternals.A;
    if (dispatcher === null) {
      return null;
    }
    return dispatcher.getOwner();
  }
  return null;
}

Domain

Subdomains

Frequently Asked Questions

What does getOwner() do?
getOwner() is a function in the react codebase, defined in packages/react/src/jsx/ReactJSXElement.js.
Where is getOwner() defined?
getOwner() is defined in packages/react/src/jsx/ReactJSXElement.js at line 50.
What calls getOwner()?
getOwner() is called by 4 function(s): cloneElement, createElement, jsxDEVImpl, jsxProd.

Analyze Your Own Codebase

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

Try Supermodel Free