how to delete the item in th elist based on the index value react code example
Example: how to delete element at a particular index of array in react js
var array = [...this.state.people]; // make a separate copy of the array
var index = array.indexOf(e.target.value)
if (index !== -1) {
array.splice(index, 1);
this.setState({people: array});
}