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

Function createContainer

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

Source from the content-addressed store, hash-verified

50const unmountFunctions: Array<() => void | boolean> = [];
51
52function createContainer() {
53 const container = document.createElement('div');
54
55 ((document.body: any): HTMLBodyElement).appendChild(container);
56
57 return container;
58}
59
60function mountApp(App: () => React$Node) {
61 const container = createContainer();

Callers 3

mountAppFunction · 0.70
mountStrictAppFunction · 0.70
mountLegacyAppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected