I am quite new to React and after going through some tutorials, I was trying the below code of mine.
I made one component, passed props to it from a store, on compo
compo
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({});