code: function connect(Composed) {
    return (function (superclass) {
      function Connect(props) {
        superclass.call(this, props);
        this.state = getState();
        this.onChange = this.onChange.bind(this);
      }
  
      if ( superclass ) Connect.__proto__ = superclass;
      Connect.prototype = Object.create( superclass && superclass.prototype );
      Connect.prototype.constructor = Connect;
  
      Connect.prototype.componentDidMount = function componentDidMount () {
        this.token = subscribe(this.onChange);
      };
  
      Connect.prototype.componentWillUnmount = function componentWillUnmount () {
        if (typeof this.token === "function") {
          this.token();
        }
      };
  
      Connect.prototype.onChange = function onChange (state) {
        this.setState(state);
      };
  
      Connect.prototype.render = function render () {
        return React.createElement(Composed, Object.assign({}, this.state, this.props));
      };
  
      return Connect;
    }(React__default.PureComponent));
  }
docs: Copyright (c) 2015-2018, JC Fisher