SyntaxFix
Write A Post
Hire A Developer
Questions
In react, state will not change until you do it by using this.setState({});. That is why your console message showing old values.
this.setState({});