Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (20 loc) · 562 Bytes

readme.markdown

File metadata and controls

27 lines (20 loc) · 562 Bytes

Lite YouTube Embed - React

Port of Paul Irish's Lite YouTube Embed to a React Component

Installation

$ yarn add @mcansh/lite-youtube-embed-react
// or
$ npm install @mcansh/lite-youtube-embed-react

Basic Usage

import * as React from 'react';
import { render } from 'react-dom';
import { LiteYouTubeEmbed } from 'react-lite-youtube-embed';

const App = () => (
  <div>
    <LiteYouTubeEmbed id="ogfYd705cRs" />
  </div>
);

render(<App />, document.getElementById('root'));