Home

Awesome

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