MCPcopy Create free account
hub / github.com/microsoft/SandDance / _setComponentRef

Function _setComponentRef

docs/app/js/sanddance-app.js:25239–25244  ·  view source on GitHub ↗
(componentRef, value)

Source from the content-addressed store, hash-verified

25237 _setComponentRef(this.props.componentRef, null);
25238}
25239function _setComponentRef(componentRef, value) {
25240 if (componentRef) {
25241 if (typeof componentRef === "object") componentRef.current = value;
25242 else if (typeof componentRef === "function") componentRef(value);
25243 }
25244}
25245
25246},{"./extendComponent":"4VCg2","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"k3hSu":[function(require,module,exports) {
25247var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 3

_onMountFunction · 0.85
_onUpdateFunction · 0.85
_onUnmountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected