Meeka
0
Q:

TypeError: Cannot read property 'setState' of undefined

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})
}
0

New to Communities?

Join the community