# beautiful-react-redux

> A magical tool to improve React-Redux performance

Latest version **2.1.0** (published 2018-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install beautiful-react-redux
pnpm add beautiful-react-redux
yarn add beautiful-react-redux
bun add beautiful-react-redux
```

## 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 | 2018-08-18 |
| First published | 2018-02-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 10.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 87 |
| Author | Anton Korzunov |
| Maintainers | kashey |
| Keywords | react, redux, memoize, mapStateToProps, selector, redraw |

## Links

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

## Dependencies (3)

- [shallowequal](https://npm.io/package/shallowequal.md) ^1.0.2
- [memoize-state](https://npm.io/package/memoize-state.md) ^2.0.1
- [function-double](https://npm.io/package/function-double.md) ^1.0.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2018-08-18
- 2.0.1 — 2018-07-22
- 2.0.0 — 2018-07-22
- 1.3.2 — 2018-07-21
- 1.3.1 — 2018-07-21
- 1.3.0 — 2018-03-29
- 1.2.5 — 2018-03-26
- 1.2.4 — 2018-03-22
- 1.2.3 — 2018-03-19
- 1.2.2 — 2018-03-19
- 1.2.1 — 2018-03-19
- 1.2.0 — 2018-03-19
- 1.1.0 — 2018-03-13
- 1.0.10 — 2018-03-05
- 1.0.9 — 2018-02-24
- … 4 more at https://npm.io/package/beautiful-react-redux/versions

## README

beautiful-react-redux
=====
Automagically enhances, even enchants redux `connect`, to be more concrete - `mapStateToProps`,
wrapping it with `memoize-state` to sky-rocket your application.

Just import beautiful-react-redux and forget about __reselect__ and any other selector memoization.
Now your application will runs like it has MobX underneath.

No updates when you dont expect them. For all. For free!

[![NPM](https://nodei.co/npm/beautiful-react-redux.png?downloads=true&stars=true)](https://nodei.co/npm/beautiful-react-redux/)

## Usage

#### Auto-magic
```js
// to get automatic deep-equal memoization for all mapStateToProps
import 'beautiful-react-redux/patch';
```

#### Or just replace react-redux by beautiful-react-redux
```js
//import {connect, Provider} from 'react-redux';
import {connect, Provider} from 'beautiful-react-redux';
```

100% compatible with any other memoization you might already had underneath.

#### Double check your existing selectors
If you already handling selectors by your own, and dont need external tools - 
you can just double check that your mapStateToProps is good enough.
```js
// to get automatic checks for your mapStateToProps
import 'beautiful-react-redux/check';
```

PS: Better not to mix memoize and check.

Consider double measure performance, or use only `beautiful-react-redux/check` and another memoization library.

# Licence
MIT

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