Skip to content

Instantly share code, notes, and snippets.

@aakashns
Created December 5, 2017 05:09
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 aakashns/fa82c195defdcbcbccc8890679444720 to your computer and use it in GitHub Desktop.
Save aakashns/fa82c195defdcbcbccc8890679444720 to your computer and use it in GitHub Desktop.
// Selectors for specific fields
const getName = data => data.name;
const getAddress = data => data.address;
const getSubscribeToNewsLetter = data => data.subscribeToNewsLetter;
// Action creators for specific fields
const setName = name => editContactForm({ name });
const setAddress = address => editContactForm({ address });
const setSubscribeToNewsletter = v =>
editContactForm({ subscribeToNewsLetter: v });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment