Skip to content

Instantly share code, notes, and snippets.

@brakmic
Last active April 11, 2017 10:14
Show Gist options
  • Save brakmic/1eff467be037d42bf820c66298b8ab5e to your computer and use it in GitHub Desktop.
Save brakmic/1eff467be037d42bf820c66298b8ab5e to your computer and use it in GitHub Desktop.
application state
// 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