# redux-common

> Mini Redux

Latest version **2.1.0** (published 2019-07-25) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2019-07-25 |
| First published | 2019-05-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 229.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zhangcheck |

## Links

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

## Recent versions

- 2.1.0 (latest) — 2019-07-25
- 2.0.10 — 2019-06-21
- 2.0.8 — 2019-06-14
- 2.0.7 — 2019-06-14
- 2.0.6 — 2019-06-14
- 2.0.4 — 2019-06-12
- 2.0.3 — 2019-06-12
- 2.0.2 — 2019-06-12
- 2.0.1 — 2019-05-13
- 2.0.0 — 2019-05-13

## README

Mini Redux

Usage:

create React Component with mini-redux:

    import React from 'React';
    import { connect } from 'mini-redux';

    class SomeComponent extends React.Component {
      render() {
        return <div>{this.props.someData}</div>;
      }
    }

    export default connect(
      'samplePage',
      { someData: 'good' }
    ) (SomeComponent);

change Redux Store with mini-redux:

    import React from 'React';
    import { connect } from 'mini-redux';

    class SomeComponent extends React.Component {
      onClick() {
        this.props.commonAction({ someData: 'Be changed' });
      }
      render() {
        return <div onClick=onClick>{this.props.someData}</div>;
      }
    }

    export default connect(
      'samplePage',
      { someData: 'good' }
    ) (SomeComponent);

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