====== fonction map() (fléchée = plug de babel)====== Boucle sur un tableau : {this.state.clients.map((client) => (
  • {client.nom}
  • ))} ====== slice() ====== Copie du tableau original const clients = this.state.clients.slice(); ====== push() ====== Ajoute un champ au tabelau handleclick = () => { const clients = this.state.clients.slice(); clients.push({id:4, nom: 'tete'}); this.setState({clients:clients}) }; ====== splice ===== * supprime un chanmp du tableau : clients.splice(index, 1);