This is my Code for Store
import { combineReducers, createStore } from "redux";
import counterReducer from "./../Counter/counter.reducer";
const rootReducer = combineReducers({ first: counterReducer });
const store = createStore(rootReducer);
export default store;
and the Component :
const Sid = () => {
const num = useSelector((state) => state.counter);
const dispatch = useDispatch();
return (
<div>
<h1>Count value is {num}</h1>
<button onClick={() => dispatch(increaseCounter())}>Add 5 </button>
<button onClick={() => dispatch(decreaseCounter())}>Subtract 50</button>
</div>
);
};
Output:

Code Works Fine If I don't use combine reducer and directly use single reducer in the createStore() function
Please help me to solve this issue. Thanks in advance for your help.