In this ReactJS code in component I would expect this.setState( {b_MyPartyCat: value} )
to update this.state.b_MyPartyCat
so the two console.log s
setState
actually queues a state update. If you want to do something after it's actually executed, you can pass a callback as the second argument.
updatePartyCategory: function(value) {
this.setState({b_MyPartyCat: value}, function(){
console.log(this.state.value === value); // true
}.bind(this));
},