Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import React from 'react';
  2. import VideoItem from './VideoItem';
  3.  
  4. class VideoList extends React.Component {
  5. render() {
  6. const { videos, onVideoSelect } = this.props;
  7. const videoList = videos.map(video => {
  8. return (
  9. <VideoItem
  10. video={video}
  11. key={video.id.videoId}
  12. onVideoSelect={onVideoSelect}
  13. />
  14. );
  15. });
  16. return <div className="ui relaxed divided list">{videoList}</div>;
  17. }
  18. }
  19.  
  20. export default VideoList;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement