I have a component which renders the following:
render() {
  return (
    <div className = "events card" >
      <div key = {each.id}> 
        <ul>
          <li className = "card-text">Venue Name: {each.name} </li>
          <li className = "card-text">Country: {each.country} </li>
          <li className = "card-text">City: {each.city} </li>
          <li className = "card-text">Date: {each.date}</li>
        </ul>
      </div>
      <a onClick = {this.addToFavourites.bind(this)}>
        <Button text = "Add to Favourites"/>
      </a>
    </div
  );
}
addToFavourites() {
... do something
}
When I call addToFavourites, I want to pass the name, country, city and date to this function as it is going through an array of events so I don't know how else the function will do what it's supposed to do with the selected data.
 
     
    