Open xiaohanzhang opened 1 year ago
setState in constructor will give undefined state error. fixed by change it to this.state = this._getSize(width, height);
this.state = this._getSize(width, height);
setState in constructor will give undefined state error. fixed by change it to
this.state = this._getSize(width, height);