MCPcopy
hub / github.com/facebook/react / mountApp

Function mountApp

packages/react-devtools-shell/src/perf-regression/app.js:9–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import App from './apps/index';
8
9function mountApp() {
10 const container = document.createElement('div');
11
12 ((document.body: any): HTMLBodyElement).appendChild(container);
13
14 const root = createRoot(container);
15 root.render(
16 <React.StrictMode>
17 <App />
18 </React.StrictMode>,
19 );
20}
21
22mountApp();

Callers 1

app.jsFile · 0.70

Calls 2

createRootFunction · 0.90
renderMethod · 0.65

Tested by

no test coverage detected