Skip to content

Instantly share code, notes, and snippets.

@dapperAuteur
Created October 25, 2016 03:36
Show Gist options
  • Save dapperAuteur/8a70f8845642658539b21d6b107f34a7 to your computer and use it in GitHub Desktop.
Save dapperAuteur/8a70f8845642658539b21d6b107f34a7 to your computer and use it in GitHub Desktop.
import { Map } from 'immutable';
import { newGame, game } from './components/game/game';
const setupGame = () => {
let game = newGame();
const newState = new Map({})
};
export default function(currentState=new Map(), action) {
switch(action.type) {
case 'SETUP_GAME':
return setupGame(currentState);
}
return currentState;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment