123456789101112131415161718192021222324252627 |
- /**
- * React Static Boilerplate
- * https://github.com/koistya/react-static-boilerplate
- *
- * Copyright © 2015-2016 Konstantin Tarkus (@koistya)
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE.txt file in the root directory of this source tree.
- */
- import { createStore } from 'redux';
- /**
- * Centralized application state
- * See http://redux.js.org/
- */
- const store = createStore((state, action) => {
- // TODO: Add action handlers (aka "reduces")
- switch (action) {
- case 'COUNT':
- return { ...state, count: (state.count || 0) + 1 };
- default:
- return state;
- }
- });
- export default store;
|