deku-youtube-subscribe-button
v1.1.2
Published
YouTube subscribe button deku component
Downloads
17
Readme
deku-youtube-subscribe-button
YouTube subscribe button for deku. Docs https://developers.google.com/youtube/youtube_subscribe_button.
Usage
npm install deku-youtube-subscribe-button
Requires youtube script added to the page and loaded before the deku-script:
<script src="https://apis.google.com/js/platform.js"></script>
import YoutubeSubscribeButton from 'deku-youtube-subscribe-button';
export function render () {
return <YoutubeSubscribeButton channel-id='myChannelId' />;
}
Attributes
channel-id
YouTube channel ID