reactant-redux
TypeScript icon, indicating that this package has built-in type declarations

0.110.0 • Public • Published

reactant-redux

Node CI

A redux lib for Reactant

Usage

npm install reactant-redux
# or
yarn add reactant-redux

Example

import { redux } from 'reactant-redux';

const counter = redux({
  reducers: {
    count: (state = 0, { type, payload }) =>
      type === 'increase' ? state + payload : state,
  },
  actions: {
    increase: num => dispatch =>
      dispatch({
        type: 'increase',
        payload: num,
      }),
  },
});

You can visit reactant.js.org for more documentation.

Readme

Keywords

Package Sidebar

Install

npm i reactant-redux

Weekly Downloads

52

Version

0.110.0

License

MIT

Unpacked Size

15.8 kB

Total Files

13

Last publish

Collaborators

  • unadlib