constructor(props) { super(props); this.func = this.func.bind(this); }
Is better if you care about performance.
constructor(props) { super(props); this.func = this.func.bind(this); }
Is better if you care about performance.