Skip to content

Instantly share code, notes, and snippets.

@VivienAdnot
Last active November 23, 2018 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VivienAdnot/f5ac2055ff3223b02a3b226809f0b8be to your computer and use it in GitHub Desktop.
Save VivienAdnot/f5ac2055ff3223b02a3b226809f0b8be to your computer and use it in GitHub Desktop.
redux: createSelector signature
const createSelector = (state, props) => {
return (inputSelectors, transformFn) => {
const applySelectors = inputSelectors.map(selector => selector(state, props);
return transformFn(...applySelectors);
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment