Guest User

Untitled

a guest
Nov 16th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import {getCommentsForVideo} from '../../../store/reducers/comments';
  2.  
  3. class WatchContent extends React.Component {
  4. render() {
  5. {/* ... */}
  6. <Comments comments={this.props.comments} amountComments={112499}/>
  7. {/* ... */
  8. }
  9. }
  10. /* ... */
  11. function mapStateToProps(state, props) {
  12. return {
  13. relatedVideos: getRelatedVideos(state, props.videoId),
  14. video: getVideoById(state, props.videoId),
  15. channel: getChannel(state, props.channelId),
  16. comments: getCommentsForVideo(state, props.videoId),
  17. }
  18. }
Add Comment
Please, Sign In to add comment