Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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