Multiple >4 (around 10) function with bind this in the constructor. Is there a way to shorten the code?
constructor(props: SignupProps) {
super(props);
this._setDirty = this._setDirty.bind(this);
this._handleUserInput = this._handleUserInput.bind(this);
this._A = this._A.bind(this);
this._B = this._B.bind(this);
}
I tried the following but couldn't.
[this._setDirty, _this.handleUserInput, this._A, this._B].bind(this);