import React, { Component } from 'react' import { connect } from 'react-redux' import { Flex } from 'reflexbox' import { Text, Space } from 'rebass' class GameBrowser extends Component { listGames = (games) => { return games.valueSeq().map((game, index) => { return ( {game.get('name')} Join ) }) } render() { return (
{this.listGames(this.props.games)}
) } } const mapStateToProps = (state) => ({ games: state.games }) export default connect(mapStateToProps, {})(GameBrowser)