npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

redux-simplify-hooks

v1.0.2

Published

Redux made simple: modern, type-safe React hooks for deeply nested state, actions, and selectors — fully compatible with Redux Toolkit and React 16.8+.

Readme

# redux-simplify-hooks

> Redux made simple: modern, type-safe React hooks for deeply nested state, actions, and selectors — fully compatible with Redux Toolkit and React 16.8+.

[![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)

---

## What is redux-simplify-hooks?

**redux-simplify-hooks** is a lightweight collection of hooks that simplifies working with Redux state in React.  
It provides ergonomic and modern alternatives to `useSelector` and `useDispatch`, allowing you to:

- Select deeply nested state using dot notation.
- Read and write Redux state like React’s `useState()`.
- Bind Redux actions easily with hooks.
- Select multiple state slices at once.

Fully type-safe  
Compatible with **React 16.8+** (Hooks onward)  
Compatible with **Redux Toolkit**  
Supports React 17, 18, 19+  

---

## Installation

First install the required peer dependencies if not already installed:

```bash
npm install react react-dom react-redux @reduxjs/toolkit

Then install redux-simplify-hooks:

npm install redux-simplify-hooks

⚙ Peer Dependencies

| Package | Version | | ---------------- | ---------------------- | | react | >= 16.8 | | react-dom | >= 16.8 | | react-redux | ^7.1.0, ^8.0.0, ^9.0.0 | | @reduxjs/toolkit | >= 1.0.0 |


Usage

1 useRedux()

Read nested state using dot-path notation:

import { useRedux } from 'redux-simplify-hooks';

const MyComponent = () => {
  const { state, dispatch } = useRedux('user.profile.name');

  return <div>Hello, {state}</div>;
};

2 useReduxMulti()

Select multiple state paths at once:

import { useReduxMulti } from 'redux-simplify-hooks';

const { state } = useReduxMulti(['user.profile.name', 'counter.value']);

console.log(state['user.profile.name']);
console.log(state['counter.value']);

3 useReduxState()

Read & write Redux state like React's useState:

import { useReduxState } from 'redux-simplify-hooks';
import { counterSlice } from './counterSlice';

const [count, setCount] = useReduxState('counter.value', counterSlice.actions.setCounter);

setCount(42);

4 useBoundAction()

Bind Redux actions to dispatch automatically:

import { useBoundAction } from 'redux-simplify-hooks';
import { counterSlice } from './counterSlice';

const incrementByAmount = useBoundAction(counterSlice.actions.incrementByAmount);

incrementByAmount(5); // dispatches action

Testing

redux-simplify-hooks is fully tested using:

  • Jest
  • @testing-library/react
npm run test

License

This project is licensed under the Apache License 2.0.

© 2025 Mbulelo Phillip Peyi


Motivation

Redux can be powerful but verbose — redux-simplify-hooks aims to make Redux feel as simple as React's useState() without sacrificing its robustness.


Contributions

PRs and issues are welcome! If you want to contribute, please fork and submit a pull request.