use-redux-react-context
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha • Public • Published

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

/use-redux-react-context/

    Package Sidebar

    Install

    npm i use-redux-react-context

    Weekly Downloads

    1

    Version

    1.0.0-alpha

    License

    ISC

    Unpacked Size

    9.63 kB

    Total Files

    8

    Last publish

    Collaborators

    • ipiz