selectorify
v1.0.3
Published
simple selectors generator
Downloads
168
Readme
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);