import { createSelector } from 'reselect';
const getGames = state => state.game.games;
export const gamesSelector = createSelector(getGames, games => games);
import { gamesSelector } from '../../../selectors';
const mapStateToProps = state => ({
games: gamesSelector(state),
});
shouldComponentUpdate(nextProps) {
return nextProps.game !== this.props.game;
}