# redacs

> experimental redux wannabe with reducers and actions combined

Latest version **0.0.1** (published 2016-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install redacs
pnpm add redacs
yarn add redacs
bun add redacs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-02-15 |
| First published | 2016-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | d-dog@d-dog.se |
| Maintainers | daniel-lundin |
| Keywords | flux, redux |

## Links

- npm: https://www.npmjs.com/package/redacs
- npm.io page: https://npm.io/package/redacs

## 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

- 0.0.1 (latest) — 2016-02-15

## README

# Redacs

Experimental project to see what happens with redux if reducers and actions are combined into reducer actions.


## Why?
Redux is great for complex application. When writing simpler applications though, I've found that there is often a one-to-one relationship between actions and reducers. This is an experiment to see what happens if we combine them into reducer actions.


Also, the name is quite funny.

## Example

This is a simple reducer action that adds a todo:

```js
const initialState = {
  todos: []
};

const store = createStore(initialState);

function addTodo(id, description, completed) {
  return function(state) {
    return Object.assign({}, state, { todos: [...state.todos, { id, description, completed });
  }
}

store.dispatch(addTodo(1, 'a new todo', false));

```


The interface for the store is the same as for redux so it should work with redux-react for example.

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