Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.