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

Function connect

packages/react-devtools-shell/src/app/devtools.js:64–76  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

62inject('dist/app-index.js', () => {
63 initDevTools({
64 connect(cb) {
65 const root = createRoot(container);
66 root.render(
67 createElement(DevTools, {
68 browserTheme: 'light',
69 enabledInspectedElementContextMenu: true,
70 hookNamesModuleLoaderFunction,
71 showTabBar: true,
72 warnIfLegacyBackendDetected: true,
73 warnIfUnsupportedVersionDetected: true,
74 }),
75 );
76 },
77
78 onReload(reloadFn) {
79 iframe.onload = reloadFn;

Callers 2

Greeting.jsFile · 0.50
AboutPage.jsFile · 0.50

Calls 3

createRootFunction · 0.90
createElementFunction · 0.90
renderMethod · 0.65

Tested by

no test coverage detected