@bhupinderanand/react-redux-saga-boilerplate
Version:
Boilerplate with React and Redux with Redux Saga
19 lines (14 loc) • 403 B
text/typescript
import { createSelector } from '@reduxjs/toolkit';
import { RootState } from 'types';
export const selectApp = createSelector(
(state: RootState) => state.app,
app => app,
);
export const selectGitHub = createSelector(
(state: RootState) => state.github,
github => github,
);
export const selectUser = createSelector(
(state: RootState) => state.user,
user => user,
);