MCPcopy Create free account
hub / github.com/dozoisch/react-async-script / setupScriptURL

Method setupScriptURL

src/async-script-loader.js:30–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 setupScriptURL() {
31 this.__scriptURL =
32 typeof getScriptURL === "function" ? getScriptURL() : getScriptURL;
33 return this.__scriptURL;
34 }
35
36 asyncScriptLoaderHandleLoad(state) {
37 // use reacts setState callback to fire props.asyncScriptOnLoad with new state/entry

Callers 1

componentDidMountMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected