# redux-actions

> Flux Standard Action utlities for Redux

Latest version **3.0.3** (published 2024-07-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-actions
pnpm add redux-actions
yarn add redux-actions
bun add redux-actions
```

## Health

**Score 28/100 (F)** — status: abandoned.

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2024-07-21 |
| First published | 2015-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/redux-actions) |
| Module format | ESM |
| Dependencies | 2 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6450 |
| Author | Andrew Clark |
| Maintainers | acdlite, timche |
| Keywords | flux, redux, fsa, actions |

## Links

- npm: https://www.npmjs.com/package/redux-actions
- Repository: https://github.com/redux-utilities/redux-actions
- Issues: https://github.com/redux-utilities/redux-actions/issues
- npm.io page: https://npm.io/package/redux-actions

## Dependencies (2)

- [just-curry-it](https://npm.io/package/just-curry-it.md) 5.3.0
- [reduce-reducers](https://npm.io/package/reduce-reducers.md) 1.0.4

## Alternatives

- [@reckona/mreact-store](https://npm.io/package/@reckona/mreact-store.md) — 976 weekly downloads
- [regular-state](https://npm.io/package/regular-state.md) — 410 weekly downloads
- [@pacote/flux-actions](https://npm.io/package/@pacote/flux-actions.md) — 65 weekly downloads
- [@pilotlab/lux-debug](https://npm.io/package/@pilotlab/lux-debug.md) — 39 weekly downloads
- [vue-persist-state](https://npm.io/package/vue-persist-state.md) — 19 weekly downloads

## Recent versions

- 3.0.3 (latest) — 2024-07-21
- 0.8.0-alpha (prerelease) — 2015-07-16
- 3.0.0 — 2023-02-12
- 2.6.5 — 2019-03-04
- 2.6.4 — 2018-11-02
- 2.6.3 — 2018-10-22
- 2.6.1 — 2018-07-26
- 2.6.0 — 2018-07-26
- 2.5.1 — 2018-07-25
- 2.5.0 — 2018-07-25
- 2.4.0 — 2018-05-27
- 2.3.2 — 2018-05-03
- 2.3.1 — 2018-05-03
- 2.3.0 — 2018-03-07
- 2.2.1 — 2017-07-03
- … 24 more at https://npm.io/package/redux-actions/versions

## README

# redux-actions

[![Build Status](https://travis-ci.org/redux-utilities/redux-actions.svg?branch=master)](https://travis-ci.org/redux-utilities/redux-actions)
[![codecov](https://codecov.io/gh/redux-utilities/redux-actions/branch/master/graph/badge.svg)](https://codecov.io/gh/redux-utilities/redux-actions)
[![npm](https://img.shields.io/npm/v/redux-actions.svg)](https://www.npmjs.com/package/redux-actions)
[![npm](https://img.shields.io/npm/dm/redux-actions.svg)](https://www.npmjs.com/package/redux-actions)

> [Flux Standard Action](https://github.com/acdlite/flux-standard-action) utilities for Redux

### Table of Contents

- [Getting Started](#getting-started)
  - [Installation](#installation)
  - [Usage](#usage)
- [Documentation](#documentation)

# Getting Started

## Installation

```bash
$ npm install --save redux-actions
```

or

```bash
$ yarn add redux-actions
```

The [npm](https://www.npmjs.com) package provides [ES modules](http://jsmodules.io/) that should be compatible with every modern build tooling.

## Usage

```js
import { createActions, handleActions, combineActions } from 'redux-actions';

const defaultState = { counter: 10 };

const { increment, decrement } = createActions({
  INCREMENT: (amount = 1) => ({ amount }),
  DECREMENT: (amount = 1) => ({ amount: -amount })
});

const reducer = handleActions(
  {
    [combineActions(increment, decrement)]: (
      state,
      { payload: { amount } }
    ) => {
      return { ...state, counter: state.counter + amount };
    }
  },
  defaultState
);

export default reducer;
```

[See the full API documentation.](https://redux-actions.js.org/)

## Documentation

- [Introduction](https://redux-actions.js.org/introduction)
- [API](https://redux-actions.js.org/api)
- [External Resources](https://redux-actions.js.org/externalresources)
- [Changelog](https://redux-actions.js.org/changelog)
- [Contributors](https://github.com/redux-utilities/redux-actions/graphs/contributors)

---
_Source: https://npm.io/package/redux-actions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
