Last active
April 6, 2020 14:38
-
-
Save DennisDurairaj/583c30cee3b371c55039b1989ddd0de6 to your computer and use it in GitHub Desktop.
selectors_example
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
const selectUsers = state => state.users; | |
function selectUsernames(state) { | |
return state.users.map(user => user.userName); | |
} | |
const selectField = state => state.deeply.nested.field; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment