Created
September 28, 2016 03:49
-
-
Save doug2k1/ee51a32a1660b35aa8cd30e2e9702ad1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UserList extends React.Component { | |
render () { | |
return ( | |
<ul> | |
{this.props.users.map(user => <li key={user.id}>{user.name}</li>)} | |
</ul> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment