Skip to content

Instantly share code, notes, and snippets.

@insin
Created July 29, 2015 12:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save insin/1501f30374d00ee3f4e3 to your computer and use it in GitHub Desktop.
Save insin/1501f30374d00ee3f4e3 to your computer and use it in GitHub Desktop.
return (
<div>
<h2>Friends</h2>
<ul>
{this.state.friends.map(friend =>
<Friend
key={ friend.id }
friend={ friend }
isSelected={ this.isSelected( friend ) }
toggleSelection={ this.toggleSelection }
/>
)}
</ul>
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment