Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {getCommentsForVideo} from '../../../store/reducers/comments';
- class WatchContent extends React.Component {
- render() {
- {/* ... */}
- <Comments comments={this.props.comments} amountComments={112499}/>
- {/* ... */
- }
- }
- /* ... */
- function mapStateToProps(state, props) {
- return {
- relatedVideos: getRelatedVideos(state, props.videoId),
- video: getVideoById(state, props.videoId),
- channel: getChannel(state, props.channelId),
- comments: getCommentsForVideo(state, props.videoId),
- }
- }
Add Comment
Please, Sign In to add comment