# redux-store-init

> redux-store-init is a function used to initialize store.

Latest version **2.2.0** (published 2019-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-store-init
pnpm add redux-store-init
yarn add redux-store-init
bun add redux-store-init
```

## 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.2.0 |
| Published | 2019-02-11 |
| First published | 2018-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | lizhooh |
| Maintainers | lizhooh |
| Keywords | redux-store, redux-store-init, redux-init |

## Links

- npm: https://www.npmjs.com/package/redux-store-init
- Repository: https://github.com/Lizhooh/redux-store-init
- Homepage: https://github.com/Lizhooh/redux-store-init#readme
- Issues: https://github.com/Lizhooh/redux-store-init/issues
- npm.io page: https://npm.io/package/redux-store-init

## Dependencies (1)

- [is-env](https://npm.io/package/is-env.md) latest

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

- 2.2.0 (latest) — 2019-02-11
- 2.1.0 — 2018-12-29
- 2.0.0 — 2018-05-31
- 1.5.1 — 2018-05-11
- 1.5.0 — 2018-05-11
- 1.4.1 — 2018-05-10
- 1.4.0 — 2018-05-10
- 1.3.2 — 2018-04-10
- 1.3.1 — 2018-03-29
- 1.3.0 — 2018-03-06
- 1.2.6 — 2018-03-06
- 1.2.5 — 2018-03-06
- 1.2.4 — 2018-03-06
- 1.2.3 — 2018-03-06
- 1.2.2 — 2018-03-06
- … 7 more at https://npm.io/package/redux-store-init/versions

## README

### redux-store-init
redux-store-init is a function used to initialize store.


<a href="https://www.npmjs.com/package/redux-store-init"><img src="https://img.shields.io/npm/v/redux-store-init.svg?style=flat-square"></a>
<a href="https://www.npmjs.com/package/redux-store-init"><img src="https://img.shields.io/npm/dm/redux-store-init.svg?style=flat-square"></a>


### install

```js
npm install --save redux-store-init
```

### use

```js
import React from 'react';
import { hydrate } from 'react-dom';
import { Provider } from 'react-redux';
import * as reducers from './reducers';
import Store from 'redux-store-init';

import thunk from 'redux-thunk';
import logger from 'redux-diff-logger';

const store = Store({ reducers, devtool: true, applyMiddlewares: [thunk, logger] });
// or
// Store({ reducers, devtool: true }, [thunk, logger]);

hydrate(
    <Provider store={store}>
        <App />
    </Provider>,
    document.getElementById('app')
);
```

### options

- devtool: Boolean
- reducers: Object
- compose: Array
- initState: Object
- applyMiddlewares: Array

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