Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 11, 2018 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/bf79c5cf0b19311f3701793961fc59eb to your computer and use it in GitHub Desktop.
Save productioncoder/bf79c5cf0b19311f3701793961fc59eb to your computer and use it in GitHub Desktop.
Youtube in React: get channel in WatchContent
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