Skip to content

Instantly share code, notes, and snippets.



Last active Jul 22, 2020
What would you like to do?
import { combineReducers } from '@reduxjs/toolkit'
import clicksReducer from './counter'
const clicks = { count: clicksReducer }
export let rootReducer = combineReducers({
export default function createReducer(injectedReducers = {}) {
rootReducer = combineReducers({
return rootReducer;
export type RootState = ReturnType<typeof rootReducer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment