I'm trying to combine two reducers with redux: increment and decrement reducers.
In my store.js file:
With this line import reducer from "./reducers/increment";
the button increment works.
With this line import reducer from "./reducers/decrement";
the button decrement works.
With this line import reducer from "./reducers/index";
the counter does not even display.
My code is given here.
What am I doing wrong please ?
What if the two reducer states have the same counter value ? Which is the source of truth if the value of counter is modified ?
Thank you for your help.