redux-actions

WebJar for redux-actions

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

redux-actions
Последняя версия

Последняя версия

2.6.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

redux-actions
WebJar for redux-actions
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать redux-actions

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
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)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
2.6.5
2.6.4
0.8.0