Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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