title: React JS setState({dict : dict })
body: <p>I wonder if this is the correct solution to update the state with two dictionares</p>
  
  <pre><code>var PopulationCityView = React.createClass({
      getInitialState: function() {
          return {
              prod_diff : {'wheat':0,'meat':0,'fish':0,'bread':0,'fruit':0,'wine':0,'beer':0,'wool':0,'cloth':0,'leather':0,'paper':0,'ceramics':0,'furniture':0,'glass':0}
              };
      },
      componentWillMount: function() {
          this.prod_diff = {'wheat':0,'meat':0,'fish':0,'bread':0,'fruit':0,'wine':0,'beer':0,'wool':0,'cloth':0,'leather':0,'paper':0,'ceramics':0,'furniture':0,'glass':0};
      },
      handleM: function(res,child_new_res_diff){
          var new_prod_diff = this.prod_diff;
          new_prod_diff[res] = child_new_res_diff;
          this.setState({prod_diff:new_prod_diff});
      },
      render: function(){
  ........
  </code></pre>
  
  <p>if anyone knows of a better and faster solution would ask for a hint...</p>