I\'m sending values of numbers from Numbers component to Main component. Everything is working fine until I set that value in my Main component to that component\'s state.<
Probably because the console.log is triggered before the new state has been really set.
You should use the function:
componentDidUpdate: function() { console.log(this.state.number); }
This function is triggered each time the state is updated.
Hope it helps