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

Function mountApp

packages/react-devtools-shell/src/app/index.js:60–67  ·  view source on GitHub ↗
(App: () => React$Node)

Source from the content-addressed store, hash-verified

58}
59
60function mountApp(App: () => React$Node) {
61 const container = createContainer();
62
63 const root = createRoot(container);
64 root.render(createElement(App));
65
66 unmountFunctions.push(() => root.unmount());
67}
68
69// $FlowFixMe[missing-local-annot]
70function mountStrictApp(App) {

Callers 3

mountTestAppFunction · 0.70
app-legacy.jsFile · 0.50
app.jsFile · 0.50

Calls 5

createRootFunction · 0.90
createElementFunction · 0.90
createContainerFunction · 0.70
renderMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected