Last active
October 13, 2018 11:30
-
-
Save whtswrng/8ec172dd050d625ae6f5af93014580ee 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
export class UserTable extends Component { | |
render() { | |
return ( | |
<div> | |
<UserList>{ | |
({users}) => { | |
return <table> | |
<thead> | |
<tr> | |
<th>Id</th> | |
<th>Name</th> | |
</tr> | |
</thead> | |
<tbody> | |
{users.map((user, index) => <UserRow key={index} user={user}/>)} | |
</tbody> | |
</table> | |
} | |
} | |
</UserList> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment