How to edit an item in a state array? : <p>So here is my state:</p>

<pre><code>this.state = {
  ids: ['A', 'E', 'C']
};
</code></pre>

<p>How would I go about modifying the state so that 'E' at index 1 is changed to 'B'?
Like for example:</p>

<pre><code>this.setState({
  ids[1]: 'B'
});
</code></pre>

<p>How would this be done?</p>
