score:0

setstate is a function, you should call it as such:

this.setstate({ foo: 'bar' });

Related Query

More Query from same tag