Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: passing down video as props to VideoMetadata
/* ... */
class WatchContent extends React.Component {
render() {
if (!this.props.videoId) {
return <div/>
return (
<div className='watch-grid'>
<Video className='video' id={this.props.videoId}/>
<VideoMetadata video={}/>
<Comments amountComments={112499}/>
<RelatedVideos className='relatedVideos'/>
/* ... */
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.