redux-actions

WebJar for redux-actions

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

redux-actions
Last Version

Last Version

2.6.5
Release Date

Release Date

Type

Type

jar
Description

Description

redux-actions
WebJar for redux-actions
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/redux-utilities/redux-actions

Download redux-actions

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/redux-actions/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>redux-actions</artifactId>
    <version>2.6.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/redux-actions/
implementation 'org.webjars.npm:redux-actions:2.6.5'
// https://jarcasting.com/artifacts/org.webjars.npm/redux-actions/
implementation ("org.webjars.npm:redux-actions:2.6.5")
'org.webjars.npm:redux-actions:jar:2.6.5'
<dependency org="org.webjars.npm" name="redux-actions" rev="2.6.5">
  <artifact name="redux-actions" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='redux-actions', version='2.6.5')
)
libraryDependencies += "org.webjars.npm" % "redux-actions" % "2.6.5"
[org.webjars.npm/redux-actions "2.6.5"]

Dependencies

compile (5)

Group / Artifact Type Version
org.webjars.npm : invariant jar [2.2.4,3)
org.webjars.npm : to-camel-case jar [1.0.0,2)
org.webjars.npm : just-curry-it jar [3.1.0,4)
org.webjars.npm : loose-envify jar [1.4.0,2)
org.webjars.npm : reduce-reducers jar [0.4.3,0.5)

Project Modules

There are no modules declared in this project.

Looking for Maintainers

Unfortunately I (timche) don't have the required time anymore to maintain this library and give it the necessary attention. Therefore I'm looking for maintainers that are willing to take care of this library on a long-term basis.

Requirements:

  • Having knowledge of this library and open-source in general.
  • Keeping the philosophy and goals of this library.
  • Taking care of issues and pull requests.
  • If required and reasonable, working out next versions of this library with the intention to improve it with the community in mind and not for the sole purpose.
  • Knowing what's good for the library and what not (e.g. not accepting every suggestion) in order to maintain the library scope.
  • Having knowledge about the tooling (CI, build system, etc.) and the docs and maintaining them.

It's also possible to join redux-utilities, an umbrella organization of complementing redux utility libraries like this one, to take care of few or all libraries. Please let me know if you are interested in that.

Please send me an email (adress on my profile) with the subject "redux-actions" and some information about you, if you want to be a maintainer.

redux-actions

Build Status codecov npm npm

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

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.

Documentation

org.webjars.npm

Redux Utilities

Useful utilities to build Redux applications

Versions

Version
2.6.5
2.6.4
0.8.0