Created
February 1, 2021 22:38
-
-
Save AllGistsEqual/33b49998ba2e376d241baa8e3b8d2b06 to your computer and use it in GitHub Desktop.
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
// File: src/redux/rootReducer.ts | |
import { combineReducers } from '@reduxjs/toolkit' | |
import { connectRouter } from 'connected-react-router' | |
import { History } from 'history' // TODO: check for updates to switch to more recent version of history | |
import counterReducer from './demo/counter' | |
const rootReducer = (history: History) => | |
combineReducers({ | |
counter: counterReducer, | |
router: connectRouter(history), | |
}) | |
export default rootReducer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment