1.0.3 • Published 3 years ago

selectorify v1.0.3

Weekly downloads
16
License
MIT
Repository
-
Last release
3 years ago

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);
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago