score:1

Accepted answer
  contacts = contacts.map(function(contact, index){
    return(
      <div key={index} className="contactcard" onClick={this.oncontactClick}>
        <div className="name">{contact.name}</div>
      </div>
    )
  }, this);

Related Query

More Query from same tag