How to use the redux-recompose.createTypes function in redux-recompose

To help you get started, we’ve selected a few redux-recompose examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Wolox / redux-recompose / example / src / redux / hearthstone / actions.js View on Github external
import { createTypes } from 'redux-recompose';

export const actions = createTypes(['OTHER_ACTION'], '@@HEARTHSTONE');

// No API calls ?
const actionCreators = {
  otherAction: () => ({ type: actions.OTHER_ACTION })
};

export default actionCreators;

redux-recompose

A Redux utility belt for reducers and actions. Inspired by acdlite/recompose.

MIT
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis