# react-lowdb

> Save React state on LocalStorage using lowdb

Latest version **1.2.0** (published 2019-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-lowdb
pnpm add react-lowdb
yarn add react-lowdb
bun add react-lowdb
```

## 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 | 1.2.0 |
| Published | 2019-05-30 |
| First published | 2019-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Paul Gadi |
| Maintainers | polats |
| Keywords | npm, module, node, javascript, react, lowdb, LocalStorage |

## Links

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

## Dependencies (5)

- [lowdb](https://npm.io/package/lowdb.md) ^1.0.0
- [react](https://npm.io/package/react.md) 16.8.6
- [react-dom](https://npm.io/package/react-dom.md) 16.8.6
- [react-scripts](https://npm.io/package/react-scripts.md) ^3.0.1
- [react-json-view](https://npm.io/package/react-json-view.md) ^1.19.1

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

- 1.2.0 (latest) — 2019-05-30
- 1.1.0 — 2019-05-30
- 1.0.0 — 2019-05-28
- 0.0.5 — 2019-05-27
- 0.0.4 — 2019-05-27
- 0.0.3 — 2019-05-27
- 0.0.2 — 2019-05-27
- 0.0.1 — 2019-05-27

## README

# react-lowdb

Save React state on LocalStorage using lowdb

[![Build Status](https://travis-ci.org/polats/react-lowdb.svg?branch=master)](https://travis-ci.org/polats/react-lowdb)
[![dependencies Status](https://david-dm.org/polats/react-lowdb/status.svg)](https://david-dm.org/polats/react-lowdb)
[![devDependencies Status](https://david-dm.org/polats/react-lowdb/dev-status.svg)](https://david-dm.org/polats/react-lowdb?type=dev)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

# Demo

Check it out on [CodeSandbox](https://codesandbox.io/s/github/polats/react-lowdb)

# Installation

```
npm install react-lowdb

```

# Usage
```
import ComponentWithReactLowdb from 'react-lowdb'

class Demo extends ComponentWithReactLowdb {

  // All state changes from Demo will now be saved
  // via ComponentWithReactLowdb's componentDidUpdate.
  //
  // They are loaded back via ComponentWithReactLowdb's
  // componentDidMount.

}
```

# Props

* **defaultDBFields** (Optional) - default values of the DB
* **dbName** (Optional) - specify the name of the node to save in LocalStorage. Defaults to __[constructor.name]-react-lowdb__

# License

MIT © Paul Gadi

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