Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value: state.value + action.amount,
};
case DECREMENT:
return {
...state,
value: state.value - action.amount,
};
}
return state;
};
// Store
export const store = createStore(
reducer,
applyMiddleware(Heap.reduxMiddleware)
);