Table des matières

Variable d'un tableau

1ère écriture

 const elements = this.state.clients.map(function (client) {
    return (
      <li>
        {client.nom} <button>X</button>
      </li>
    );
  });
  

2ème écriture

 const elements = this.state.clients.map(client => ( <li>{client.nom} <button>X</button></li> ));