Created
November 4, 2018 13:08
-
-
Save productioncoder/4df039c03ce66737dc4dfdb57fa8801d to your computer and use it in GitHub Desktop.
Youtube in React: get video by id selector
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 getVideoById = (state, videoId) => { | |
return state.videos.byId[videoId]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment