app-legacy.js — react Source File
Architecture documentation for app-legacy.js, a javascript file in the react codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d0eeac21_8285_7c0f_29f9_523d1b9b57a1["app-legacy.js"] c0933170_04c4_21bd_1ed5_38c7df2e0db6["ListApp.js"] d0eeac21_8285_7c0f_29f9_523d1b9b57a1 --> c0933170_04c4_21bd_1ed5_38c7df2e0db6 afbe0e94_9107_c22a_44d8_dc43ee591bc4["ListAppLegacy.js"] d0eeac21_8285_7c0f_29f9_523d1b9b57a1 --> afbe0e94_9107_c22a_44d8_dc43ee591bc4 ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] d0eeac21_8285_7c0f_29f9_523d1b9b57a1 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 4d0c4ccc_5970_e7f9_458f_15f0290099b1["react-dom"] d0eeac21_8285_7c0f_29f9_523d1b9b57a1 --> 4d0c4ccc_5970_e7f9_458f_15f0290099b1 80162ac2_4fc9_259b_04e9_4acc940af136["utils"] d0eeac21_8285_7c0f_29f9_523d1b9b57a1 --> 80162ac2_4fc9_259b_04e9_4acc940af136 style d0eeac21_8285_7c0f_29f9_523d1b9b57a1 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 ReactDOM from 'react-dom';
import ListApp from '../e2e-apps/ListApp';
import ListAppLegacy from '../e2e-apps/ListAppLegacy';
import {gte} from 'react-devtools-shared/src/backend/utils';
const version = process.env.E2E_APP_REACT_VERSION;
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);
}
function mountTestApp() {
// ListApp has hooks, which aren't available until 16.8.0
mountApp(gte(version, '16.8.0') ? ListApp : ListAppLegacy);
}
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(' ')),
...ReactDOM,
};
Domain
Subdomains
Functions
Dependencies
- ListApp.js
- ListAppLegacy.js
- react
- react-dom
- utils
Source
Frequently Asked Questions
What does app-legacy.js do?
app-legacy.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-legacy.js?
app-legacy.js defines 2 function(s): mountApp, mountTestApp.
What does app-legacy.js depend on?
app-legacy.js imports 5 module(s): ListApp.js, ListAppLegacy.js, react, react-dom, utils.
Where is app-legacy.js in the architecture?
app-legacy.js is located at packages/react-devtools-shell/src/e2e-regression/app-legacy.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