Created
August 13, 2021 20:50
-
-
Save JasonMore/333d92e8dad4681020491bba5fb18981 to your computer and use it in GitHub Desktop.
carSelectors.js
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
export const getCars = (state) => state.car.cars; | |
export const getCarById = (carId) => (state) => getCars(state)[carId]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment