title: Should I update lists in place with React?
body: <p>To delete an item from a list, I created a new list that does not contain the deleted item, and replaced the old list with the new. Is this the "right" way or should I edit the list in place? I suspect this may be inefficient for JS.</p>
  
  <pre class="lang-jsx prettyprint-override"><code>destroy: function(chosenItem) {
    var newItems = this.state.items.filter(function(item) {
      return chosenItem.id != item.id;
    });
    this.setState({items:newItems});
  }
  </code></pre>