Last active
December 9, 2018 11:18
-
-
Save productioncoder/62617e221c98e94bcbbb20777f32039e to your computer and use it in GitHub Desktop.
Youtube in React: making NextUpVideo dynamic
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
export function NextUpVideo(props) { | |
return ( | |
<React.Fragment> | |
<div className='next-up-container'> | |
<h4>Up next</h4> | |
<div className='up-next-toggle'> | |
<span>Autoplay</span> | |
<Checkbox toggle defaultChecked /> | |
</div> | |
</div> | |
<VideoPreview horizontal={true} video={props.video} pathname='/watch' search={`?v=${props.video.id}`}/> | |
<Divider/> | |
</React.Fragment> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment