# redux-root-state

> Return the `DefaultRootState` interface back to the [react-redux](https://www.npmjs.com/package/react-redux) library.

Latest version **0.0.3** (published 2023-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install redux-root-state
pnpm add redux-root-state
yarn add redux-root-state
bun add redux-root-state
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2023-01-13 |
| First published | 2023-01-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | alexanderpo |
| Maintainers | alexanderpo |
| Keywords | return, DefaultRootState, interface, back, react, redux |

## Links

- npm: https://www.npmjs.com/package/redux-root-state
- Repository: https://github.com/Apozhidaev/redux-root-state
- Homepage: https://github.com/Apozhidaev/redux-root-state#readme
- Issues: https://github.com/Apozhidaev/redux-root-state/issues
- npm.io page: https://npm.io/package/redux-root-state

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

- 0.0.3 (latest) — 2023-01-13
- 0.0.2 — 2023-01-09

## README

# redux-root-state

Return the `DefaultRootState` interface back to the [react-redux](https://www.npmjs.com/package/react-redux) library.

## How to Use

Step 1.
```bash
npm i redux-root-state
```

Step 2.

```typescript
type RootState = ReturnType<typeof store.getState>;

declare module "redux-root-state" {
  export interface DefaultRootState extends RootState {}
}
```

Step 3.
```typescript
import { useDispatch, useSelector, connect } from "redux-root-state";
```

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