npm install
npm start
open http://localhost:3000
- Remove the button to add more players
- Add a check to see if we're not adding more than 3 players
- Also make sure that we don't show the form to add another player if we reached the player limit of 3
- Create an action + reducer to update a player (name and/or color) by their index
- Create an action that emits
UPDATE_PLAYER
, with the new player object as a payload - Create a case statement in the players reducer to process the
UPDATE_PLAYER
action Make sure to not change the immutable state object directly! - Return the new state from the reducer
- Create an action that emits
- Create an action createGame, that emits a
CREATE_GAME
and no payload- Create a new file in the reducers folder, called
cards
to manage the top levelcards
collection inside your store - Make sure to export the new reducer from
reducers/index.js
so that it will be added to the store - Then write a reducer that acts on the
case
where we emitCREATE_GAME
, and return a new set of 16 cards - Hook up the button in
WhoIsPlaying
to call a way to create a game from the parentApp
component - Add a check to see if we don't try to start a game with less than 2 players
- Create a new file in the reducers folder, called
Simplified version of react-transform-boilerplate for the traineeship program.