Comment supprimer l'élément à un index particulier du tableau dans 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});
  }
Yellowed Yacare