MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / BaseStyledComponent

Function BaseStyledComponent

code/styling/public/app.js:21407–21420  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21405 inherits(BaseStyledComponent, _Component);
21406
21407 function BaseStyledComponent() {
21408 var _temp, _this, _ret;
21409
21410 classCallCheck(this, BaseStyledComponent);
21411
21412 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
21413 args[_key] = arguments[_key];
21414 }
21415
21416 return _ret = (_temp = (_this = possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.attrs = {}, _this.state = {
21417 theme: null,
21418 generatedClassName: ''
21419 }, _this.unsubscribeId = -1, _temp), possibleConstructorReturn(_this, _ret);
21420 }
21421
21422 BaseStyledComponent.prototype.unsubscribeFromContext = function unsubscribeFromContext() {
21423 if (this.unsubscribeId !== -1) {

Callers

nothing calls this directly

Calls 2

classCallCheckFunction · 0.85

Tested by

no test coverage detected