title: how to clear the react state array?
body: <p>How to clear the existing data in react state variable (Array) and assign another array to it. I have try below thing but it doesn't works.</p>
  
  <pre><code>    itemsChanged(items) {
          this.setState({item : []})    //item is my state variable
          this.setState({item : items})
          console.log("ITEMS : ",this.state.item)   //this  will not print the updated value
      }
  </code></pre>
  
  <p>Thanks in advance</p>