0.0.6 • Published 1 year ago
react-lazyload-youtube-ts v0.0.6
react-lazyload-youtube-ts
Super lightweight LazyLoad YouTube Videos for faster page load and better performance This is the same package as react-lazyload-youtube but with typescript and styled components, so no css import nessesary
Install
npm install react-lazyload-youtube-ts
or
yarn add react-lazyload-youtube-ts
Usage
import Youtube from 'react-lazyload-youtube-ts'
const App = () => {
return (
<div style={{width: '400px', height: '200px'}}>
<Youtube videoId="mfxQy5A_tHs"/>
</div>
)
}
Props
videoId
- string (Youtube Video ID)
License
MIT © auryn31