Last active
August 8, 2016 22:51
-
-
Save fay-jai/383e641465173f209fa90a5e4c4fce77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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