Boucle sur un tableau :
{this.state.clients.map((client) => (
<li>
{client.nom} <button>X</button>
</li>
))}
Copie du tableau original
const clients = this.state.clients.slice();
Ajoute un champ au tabelau
handleclick = () ⇒ {
const clients = this.state.clients.slice();
clients.push({id:4, nom: 'tete'});
this.setState({clients:clients})
};
clients.splice(index, 1);