Socket
Socket
Sign inDemoInstall

use-redux-react-context

Package Overview
Dependencies
4
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    use-redux-react-context

Simple utility to create TS typed hook on redux store for react


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

hoodash

Install

npm install use-redux-react-context

Simple usage

// store.js
import createStoreHook from 'use-redux-react-context';
const store = createStore(reducer);
const { useSelector } = createStoreHook(store);

// Component.js
import { useSelector } from './store';

const selector = state => state.some.field;

const Consumer = () => {
  const value = useSelector(selector);
  return <div>{value}</div>;
};

Use with Typescript

  • Supports Typescript

Why hoodash?

  • Simple Utility function

Alpha

  • In Testing mode

FAQs

Last updated on 28 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc