status-js-desktop/app/reducers/index.js

13 lines
352 B
JavaScript

// @flow
import { combineReducers } from 'redux';
import { connectRouter } from 'connected-react-router';
import counter from './counter';
export default function createRootReducer(history: {}) {
const routerReducer = connectRouter(history)(() => {});
return connectRouter(history)(
combineReducers({ router: routerReducer, counter })
);
}