Created
November 12, 2020 06:57
-
-
Save guillaumewuip/dcb7fa6f4f24769b483e51c56c3352b8 to your computer and use it in GitHub Desktop.
State and Store in frontend codebases - Redux example - selector
This file contains hidden or 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
export const getUsers = (state) => | |
state.users.map((user) => ({ | |
...user, | |
picture: user.picture || "https://i.pravatar.cc/300 " | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment