Skip to content

Instantly share code, notes, and snippets.

Last active December 6, 2018 07:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Youtube Video component first version
import React from 'react';
import './Video.scss';
const BASE_EMBED_URL = '';
export function Video(props) {
if (! {
return null;
const embedUrl = `${BASE_EMBED_URL}${}`;
return (
<iframe width={'560'} height={'315'} src={embedUrl} frameBorder='0'
allow='autoplay; encrypted-media' allowFullScreen />
import React from 'react';
import './Watch.scss';
import {Video} from '../../components/Video/Video';
export class Watch extends React.Component {
render() {
return (
<div style={{maxWidth: '80%'}}>
<Video id='-7fuHEEmEjs'/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment