Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active December 9, 2018 11:18
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/62617e221c98e94bcbbb20777f32039e to your computer and use it in GitHub Desktop.
Save productioncoder/62617e221c98e94bcbbb20777f32039e to your computer and use it in GitHub Desktop.
Youtube in React: making NextUpVideo dynamic
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