constructor(){ this.in = this.in.bind(this) //Add this to your constructor } //If this is your method in(){ this.setState({counter:this.state.counter+1}) }