Skip to content
Docs
/
React
/
Quick Start

Quick Start

These examples illustrate how to use the library with YouTube or Vimeo.

// Dependencies
import { VimeoLite, YoutubeLite } from '@lite-embed/react';

export default function App() {
  return (
    <>
      <YoutubeLite
        urlOrId="https://www.youtube.com/watch?v=dQw4w9WgXcQ"
        // or
        // urlOrId="dQw4w9WgXcQ"
      />

      <VimeoLite
        urlOrId="https://vimeo.com/476064230"
        // or
        // urlOrId="476064230"
      />
    </>
  );
}

Will output this:

YouTube

Vimeo