So here is my state:
this.state = { ids: [\'A\', \'E\', \'C\'] };
How would I go about modifying the state so that \'E\' at index 1 is change
Here is another solution to change a specific index of array in a setState:
this.setState({ ...array, Object.assign([...array], { [id]: yourNewObjectOrValue }) })