blob: bc2c768ef9ab28ddec32eb3169520a53e7ffc4a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import React from 'react';
import { Flex } from 'reflexbox';
import { Text } from 'rebass';
const PlayerList = ({ players }) => (
<div>
{players.map(player => {
return (
<Flex key={player.index}>
<Text>{player.displayName}</Text>
<Text>({player.username})</Text>
</Flex>
);
})}
</div>
);
export default PlayerList;
|