Giter Club home page Giter Club logo

memoredux's Introduction

React Starter

Installation

npm install
npm start
open http://localhost:3000

Assignments

  • 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 createGame, that emits a CREATE_GAME and no payload
    • Create a new file in the reducers folder, called cards to manage the top level cards 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 emit CREATE_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 parent App component
    • Add a check to see if we don't try to start a game with less than 2 players

Simplified version of react-transform-boilerplate for the traineeship program.

memoredux's People

Contributors

hezus avatar

Watchers

Wouter de Vos avatar  avatar James Cloos avatar Andrew Harrison avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.