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

Function inject

packages/react-devtools-shell/src/perf-regression/devtools.js:18–23  ·  view source on GitHub ↗
(contentDocument, sourcePath)

Source from the content-addressed store, hash-verified

16}
17
18function inject(contentDocument, sourcePath) {
19 const script = contentDocument.createElement('script');
20 script.src = sourcePath;
21
22 ((contentDocument.body: any): HTMLBodyElement).appendChild(script);
23}
24
25function init(
26 appSource: string,

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected