oh-my-c0de/oh-my-fullstack

View on GitHub
redux/actions/counter.js

Summary

Maintainability
A
1 hr
Test Coverage
import { createActions } from 'redux-actions';
import * as actionTypes from './action-types';
import { defaultAction } from '../../helpers';

export const {
  increment,
  decrement,
  setCounter,
} = createActions({
  [actionTypes.INCREMENT]: defaultAction,
  [actionTypes.DECREMENT]: defaultAction,
  [actionTypes.SET_COUNTER]: defaultAction,
});