redux-actions
Flux Standard Action utilities for Redux.
Table of Contents
Getting Started
Installation
$ npm install --save redux-actions
or
$ yarn add redux-actions
The npm package provides a CommonJS build for use in Node.js, and with bundlers like Webpack and Browserify. It also includes an ES modules build that works well with Rollup and Webpack2's tree-shaking.
The UMD build exports a global called window.ReduxActions
if you add it to your page via a <script>
tag. We don’t recommend UMD builds for any serious application, as most of the libraries complementary to Redux are only available on npm.
Usage
const defaultState = counter: 10 ; const increment decrement = ; const reducer = ; ;
See the full API documentation.