Skip to content

Instantly share code, notes, and snippets.

@fay-jai
Last active August 8, 2016 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fay-jai/383e641465173f209fa90a5e4c4fce77 to your computer and use it in GitHub Desktop.
Save fay-jai/383e641465173f209fa90a5e4c4fce77 to your computer and use it in GitHub Desktop.
// PSEUDO CODE BELOW
import { createStore } from "redux";
const team1Hoop = createStore( /* ignore the arguments here for now */ );
/*
* The store created above manages your entire application's state.
* You can think of the store as containing a giant JavaScript object
* where each key is a particular piece of the application state and
* the value is its associated value.
*
* I don't know how the state is actually managed in the store, but I imagine
* something like this:
*
* team1Hoop.__applicationState__ = {
* totalPoints: 0,
* playerList: [ list of players on team ]
* };
*
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment