Created
April 9, 2019 06:14
-
-
Save tsh-code/3519751b9dcc79e2df849428b955b0d5 to your computer and use it in GitHub Desktop.
This file contains 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
import React, { Component } from 'react'; | |
export class UsersList extends Component { | |
render() { | |
const { users } = this.props; | |
return ( | |
<ul> | |
{users.map(user => ( | |
<li key={user.id}> | |
<div> | |
<strong>user name</strong> | |
{`${user.firstName} ${user.lastName}`} | |
</div> | |
<div> | |
<strong>email</strong> | |
{user.email} | |
</div> | |
</li> | |
))} | |
</ul> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment