# react-source-of-truth

> The simplest state manager for React apps. API ideas are based on `react-redux` but huge simplifications are applied.

Latest version **4.0.0** (published 2022-04-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-source-of-truth
pnpm add react-source-of-truth
yarn add react-source-of-truth
bun add react-source-of-truth
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2022-04-29 |
| First published | 2019-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 368.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jacek Nowacki |
| Maintainers | dzek69 |

## Links

- npm: https://www.npmjs.com/package/react-source-of-truth
- Repository: https://github.com/dzek69/react-source-of-truth
- Homepage: https://github.com/dzek69/react-source-of-truth#readme
- Issues: https://github.com/dzek69/react-source-of-truth/issues
- npm.io page: https://npm.io/package/react-source-of-truth

## Dependencies (2)

- [immutable-assign](https://npm.io/package/immutable-assign.md) ^2.1.5
- [bottom-line-utils](https://npm.io/package/bottom-line-utils.md) ^0.17.1

## Recent versions

- 4.0.0 (latest) — 2022-04-29
- 4.0.0-alpha.2 (alpha) — 2021-12-24
- 3.0.0-beta.1 (beta) — 2020-03-26
- 4.0.0-beta.1 — 2022-04-20
- 4.0.0-alpha.3 — 2021-12-24
- 4.0.0-alpha.1 — 2021-11-02
- 3.0.0-alpha.3 — 2020-05-21
- 3.0.0-alpha.2 — 2020-05-21
- 3.0.0-alpha.1 — 2020-05-21
- 3.0.0-alpha.0 — 2020-05-20
- 2.1.1 — 2019-09-04
- 2.1.0 — 2019-09-03
- 2.0.0 — 2019-08-28
- 1.2.0 — 2019-08-27
- 1.1.0 — 2019-07-07
- … 4 more at https://npm.io/package/react-source-of-truth/versions

## README

# react-source-of-truth

The simplest state manager for React apps. API ideas are based on `react-redux` but huge simplifications are applied.

## Features:

- simplicity - no actions, no reducers
- simplicity again - your state is just a plain javascript object
- performant - no "everywhere writable" state using Proxies or other hacks
- performant again - component will re-render only if something they care for changes
- developer friendly - full & painless TypeScript support
- compatible - both hooks & class based components support
- familiar - API is based on `react-redux` API
- convenient - easily update deep state while keeping immutability rule of React (thanks to awesome `immutable-assign`)

## Usage:

See: [Docs][docs]

## License:

MIT

[docs]: https://dzek69.github.io/react-source-of-truth/pages/Tutorials/BasicConcepts.html

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