Home / Function/ mountApp() — react Function Reference

mountApp() — react Function Reference

Architecture documentation for the mountApp() function in app-legacy.js from the react codebase.

Function javascript CompilerCore Gating calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  79fcd6e5_d66c_4603_cfd6_dfdc4bd00385["mountApp()"]
  f4651fcc_65ae_14d1_9fae_c85bd6383303["app-legacy.js"]
  79fcd6e5_d66c_4603_cfd6_dfdc4bd00385 -->|defined in| f4651fcc_65ae_14d1_9fae_c85bd6383303
  922326db_fd47_1465_e75d_a22cd7e5746a["mountTestApp()"]
  922326db_fd47_1465_e75d_a22cd7e5746a -->|calls| 79fcd6e5_d66c_4603_cfd6_dfdc4bd00385
  c8be92ad_c9b5_acac_8f0f_625c206633b4["render()"]
  79fcd6e5_d66c_4603_cfd6_dfdc4bd00385 -->|calls| c8be92ad_c9b5_acac_8f0f_625c206633b4
  style 79fcd6e5_d66c_4603_cfd6_dfdc4bd00385 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shell/src/e2e-regression/app-legacy.js lines 13–20

function mountApp(App: () => React$Node) {
  const container = document.createElement('div');

  ((document.body: any): HTMLBodyElement).appendChild(container);

  // $FlowFixMe[prop-missing]: These are removed in 19.
  ReactDOM.render(<App />, container);
}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does mountApp() do?
mountApp() is a function in the react codebase, defined in packages/react-devtools-shell/src/e2e-regression/app-legacy.js.
Where is mountApp() defined?
mountApp() is defined in packages/react-devtools-shell/src/e2e-regression/app-legacy.js at line 13.
What does mountApp() call?
mountApp() calls 1 function(s): render.
What calls mountApp()?
mountApp() is called by 1 function(s): mountTestApp.

Analyze Your Own Codebase

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

Try Supermodel Free