app.js — react Source File
Architecture documentation for app.js, a javascript file in the react codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 122f1cac_b9af_849e_a931_f1190d751e00["app.js"] c0933170_04c4_21bd_1ed5_38c7df2e0db6["ListApp.js"] 122f1cac_b9af_849e_a931_f1190d751e00 --> c0933170_04c4_21bd_1ed5_38c7df2e0db6 ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] 122f1cac_b9af_849e_a931_f1190d751e00 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 8792c1c1_dca5_f137_73ea_c0e268fdbb22["client"] 122f1cac_b9af_849e_a931_f1190d751e00 --> 8792c1c1_dca5_f137_73ea_c0e268fdbb22 style 122f1cac_b9af_849e_a931_f1190d751e00 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/** @flow */
// This test harness mounts each test app as a separate root to test multi-root applications.
import * as React from 'react';
import * as ReactDOMClient from 'react-dom/client';
import ListApp from '../e2e-apps/ListApp';
function mountApp(App: () => React$Node) {
const container = document.createElement('div');
((document.body: any): HTMLBodyElement).appendChild(container);
const root = ReactDOMClient.createRoot(container);
root.render(<App />);
}
function mountTestApp() {
mountApp(ListApp);
}
mountTestApp();
// ReactDOM Test Selector APIs used by Playwright e2e tests
// If they don't exist, we mock them
window.parent.REACT_DOM_APP = {
createTestNameSelector: name => `[data-testname="${name}"]`,
findAllNodes: (container, nodes) =>
container.querySelectorAll(nodes.join(' ')),
...ReactDOMClient,
};
Domain
Subdomains
Functions
Dependencies
- ListApp.js
- client
- react
Source
Frequently Asked Questions
What does app.js do?
app.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in app.js?
app.js defines 2 function(s): mountApp, mountTestApp.
What does app.js depend on?
app.js imports 3 module(s): ListApp.js, client, react.
Where is app.js in the architecture?
app.js is located at packages/react-devtools-shell/src/e2e-regression/app.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shell/src/e2e-regression).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free