Instantly share code, notes, and snippets.

Embed
What would you like to do?
export class PopulatedUserList extends Component {
render() {
return (
<div>
<UserList>{
({users}) => {
return <ul>
{users.map((user, index) => <li key={index}>{user.id}: {user.name} {user.surname}</li>)}
</ul>
}
}
</UserList>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment