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

Function mountStrictApp

packages/react-devtools-shell/src/app/index.js:70–81  ·  view source on GitHub ↗
(App)

Source from the content-addressed store, hash-verified

68
69// $FlowFixMe[missing-local-annot]
70function mountStrictApp(App) {
71 function StrictRoot() {
72 return createElement(App);
73 }
74
75 const container = createContainer();
76
77 const root = createRoot(container, {unstable_strictMode: true});
78 root.render(createElement(StrictRoot));
79
80 unmountFunctions.push(() => root.unmount());
81}
82
83function mountLegacyApp(App: () => React$Node) {
84 // $FlowFixMe[prop-missing]: These are removed in 19.

Callers 1

mountTestAppFunction · 0.85

Calls 5

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

Tested by

no test coverage detected