score:1

Accepted answer

you should bind the class method not the one coming from props:

constructor(props) {
    super(props);

    this.updateset = this.updateset.bind(this);
}

Related Query

More Query from same tag