import React from 'react' import { Flex } from 'reflexbox' import { Text, Space, Button } from 'rebass' import Immutable from 'seamless-immutable' const GameList = (props) => (
{Immutable.asMutable(props.games).map((game, index) => { const joinGame = () => props.joinGame(game.id) return ( {game.name} ) })}
) export default GameList