Created
November 11, 2018 21:26
-
-
Save productioncoder/bf79c5cf0b19311f3701793961fc59eb to your computer and use it in GitHub Desktop.
Youtube in React: get channel in WatchContent
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
import {getChannel} from '../../../store/reducers/channels'; | |
function mapStateToProps(state, props) { | |
return { | |
relatedVideos: getRelatedVideos(state, props.videoId), | |
video: getVideoById(state, props.videoId), | |
channel: getChannel(state, props.channelId), | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment