title: updating states in a object of local state in react js
body: <p>I want to update min &amp; max in the state. If I update only min &amp; max, other two states are becoming empty.</p>
  
  <pre class="lang-js prettyprint-override"><code>constructor(props) {
    super(props);
    this.state = {
      param: {
        one: [],
        two: [],
        min: 100000,
        max: 5100000
      }
    };
  }
  </code></pre>
  
  <p>This is my code.</p>
  
  <pre><code>select_price(price) {
       this.setState({ param: {min:price[0], max:price[1]}});
  }
  </code></pre>