Created
December 5, 2017 05:09
-
-
Save aakashns/fa82c195defdcbcbccc8890679444720 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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