Selectors are deterministic functions that transform state into view-specific structures. This micro-lib converts selectors into getter functions, and combines them into a single generic object.
Using npm:
npm install 'thinkloop/combine-selectors' --save
Or download the latest source of combine-selectors.js.
import combineSelectors from 'combine-selectors';
import { state } from 'todo-redux-state';
import selectedPage from './site/selected-page';
import todos from './todos/todos';
const selectors = {
selectedPage,
todos
};
export default combineSelectors(selectors, () => state);
Released under an MIT license.
- todo-app (integration)