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

Function createContainer

packages/react-devtools-shell/src/multi/left.js:12–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10import {createRoot} from 'react-dom/client';
11
12function createContainer() {
13 const container = document.createElement('div');
14
15 ((document.body: any): HTMLBodyElement).appendChild(container);
16
17 return container;
18}
19
20function StatefulCounter() {
21 const [count, setCount] = useState(0);

Callers 1

left.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected