MCPcopy Create free account
hub / github.com/BetaSu/big-react / createRoot

Function createRoot

packages/react-dom/src/root.ts:11–20  ·  view source on GitHub ↗
(container: Container)

Source from the content-addressed store, hash-verified

9import { initEvent } from './SyntheticEvent';
10
11export function createRoot(container: Container) {
12 const root = createContainer(container);
13
14 return {
15 render(element: ReactElementType) {
16 initEvent(container, 'click');
17 return updateContainer(element, root);
18 }
19 };
20}

Callers 1

renderIntoDocumentFunction · 0.90

Calls 1

createContainerFunction · 0.90

Tested by

no test coverage detected