Last active
April 11, 2017 10:14
-
-
Save brakmic/1eff467be037d42bf820c66298b8ab5e to your computer and use it in GitHub Desktop.
application state
This file contains 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
// Application state is like a database. | |
// Currently our 'database' comprises of a single table | |
// that can be modified by a certain reducer. | |
// The sub-state's name in IAppState corresponds to | |
// reducer's name in reducers object. | |
export interface IAppState { | |
customerState: fromSubstates.ICustomerState | |
}; | |
// and we have only a single reducer here | |
const reducers = { | |
customerState: customerReducer | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment