score:3

Accepted answer

You're passing the object with all of HelloReducer's exports instead of just the reducer. There's a couple of ways to fix it. You can select the reducer:

const reducer = combineReducers<StoreState.All>({
    enthusiasm: enthusiasmReducer.enthusiasm
});

or import only the reducer:

import {enthusiasm} from './HelloReducer';
..
const reducer = combineReducers({enthusiasm});

or add export default enthusiasm; to HelloReducer.tsx and change the import to

import enthusiasmReducer from './HelloReducer';

Related Query

More Query from same tag