mirror of
https://github.com/TrentSPalmer/fcc-challenges.git
synced 2025-07-05 10:33:16 -07:00
11 lines
220 B
JavaScript
11 lines
220 B
JavaScript
import { INCCOLORCOUNT } from "../actions/colorCounterAction";
|
|
|
|
export default (state = 1, action) => {
|
|
switch (action.type) {
|
|
case INCCOLORCOUNT:
|
|
return action.count;
|
|
default:
|
|
return state;
|
|
}
|
|
};
|