summaryrefslogtreecommitdiff
path: root/frontend/src/components/playerList.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/playerList.js')
-rw-r--r--frontend/src/components/playerList.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/src/components/playerList.js b/frontend/src/components/playerList.js
new file mode 100644
index 00000000..30384d53
--- /dev/null
+++ b/frontend/src/components/playerList.js
@@ -0,0 +1,16 @@
+import React from 'react'
+import { Flex } from 'reflexbox'
+import { Text } from 'rebass'
+
+const PlayerList = (props) => (
+ <div>
+ {props.players.map((player, index) => {
+ return (<Flex key={index}>
+ <Text>{player.get('displayName')}</Text>
+ <Text>({player.get('username')})</Text>
+ </Flex>)
+ })}
+ </div>
+)
+
+export default PlayerList
bgstack15