# owl-redux

> A simple version of redux

Latest version **0.0.1** (published 2019-12-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-12-10 |
| First published | 2019-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | dengwb |
| Maintainers | dengwenbin |
| Keywords | owl-redux, owl, redux |

## Links

- npm: https://www.npmjs.com/package/owl-redux
- Repository: https://github.com/dengwb1991/owl-redux
- Homepage: https://github.com/dengwb1991/owl-redux#readme
- Issues: https://github.com/dengwb1991/owl-redux/issues
- npm.io page: https://npm.io/package/owl-redux

## Recent versions

- 0.0.1 (latest) — 2019-12-10

## README

# owl redux

 A simple version of redux

## Introduction

In order to further understand `redux`, imitate the principle of `redux` implementation and implement a simple `redux`.

## Install

```bash
$ yarn add -D owl-redux
```

## Example

Try to use [example](https://github.com/dengwb1991/owl-redux/tree/master/examples)

```bash
$ git clone git@github.com:dengwb1991/owl-redux.git

$ cd owl-redux

$ yarn

$ yarn start
```

## API

| api | instructions |
| -- | -- |
| createStore | Created `Store` Object, Includes `getState`, `dispatch`, `subscribe`, `replaceReducer` functions |
| reducer | `Reducer` is a planning function that takes the old `state` and `action` and generates the new state |
| action | `Action` is an object and must contain a `type` field |
| dispatch | Dispatch (action) triggers an `action` to generate a new `state` |
| subscribe | Implement the subscription function. Each time the `dispatch` is triggered, the subscription function will be executed |
| combineReducers | Combine multiple reducers into one `reducer` |
| replaceReducer | Replace `reducer` function |
| middleware | Extending the `dispatch` function |

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