selectorify
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

selectorify

simple selectors generator

installation

yarn add selectorify

Usage

import { selectorify } from "selectorify";

const getUser = ({ user }: RootState) => user;

const defaultState: User = {
  firstName: string,
  lastName: string,
  avatar: string,
};

export const selectors = selectorify(getUser);

const firstName = selectors.selectFirstName(rootState);

/selectorify/

    Package Sidebar

    Install

    npm i selectorify

    Weekly Downloads

    32

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4.6 kB

    Total Files

    5

    Last publish

    Collaborators

    • vaukalak