VCR: A tiny React component to handle video embeds
npm install @helpscout/vcr> A tiny React component to handle video embeds
- Tiny, at less than 2KB Gzipped
- Performant
- Multiple video rendering support (including Wistia!)
- 🔧 Installation
- 🕹 Usage
- 🙌 Supported Embeds
```
npm install --save @helpscout/vcr
Here's a quick example of how to (not-so) dangerously render video embeds with VCR:
`jsx
import React from 'react'
import VCR from '@helpscout/vcr'
// Your markup which many contain fancy video embeds
const html =
// Pass it into VCR via the html prop
const App = props => (
return (
)
)
`That's it!
VCR` will take care of parsing and rendering the video embeds as it "dangerously" sets the innerHTML to render out the rest of your HTML.- HTML Video
- Vimeo
- Wistia
- YouTube