score:1

Accepted answer
handleClick(id){
  alert("ALERT " + id);
}


render(){
  const listMeetings = this.props.meetings.map((meeting) =>
    <li key={meeting.id}>{meeting.name}
      <button key={meeting.id} onClick={() => this.handleClick(meeting.id)} value={meeting.id}>{'Details'}</button>
    </li>);
  return(
    <div>
      <ul>{listMeetings}</ul>
    </div>
  )
}
}

score:1

handleClick = (id){
    alert("ALERT " + id);
}

render(){
    const listMeetings = this.props.meetings.map((meeting) => 
    <li key={meeting.id}>{meeting.name}
    <button key={meeting.id} onClick={(id) => this.handleClick(meeting.id)} value={meeting.id}>{'Details'}</button>
    </li>);
    return(
        <div>
                   <ul>{listMeetings}</ul>
        </div>
    )
}

Related Query

More Query from same tag