🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

use-redux-react-context

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

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

1.0.0-alpha
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 28 Aug 2023

Did you know?

Socket

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