this.state = {foo: 2};
this.setState({foo: 123}, ()=> {
console.log(foo);

});