Skip to content

Instantly share code, notes, and snippets.

@zoetrope69
Created January 28, 2020 14:17
Show Gist options
  • Save zoetrope69/f9f34971bdcfa27cef1a64a97360a7d5 to your computer and use it in GitHub Desktop.
Save zoetrope69/f9f34971bdcfa27cef1a64a97360a7d5 to your computer and use it in GitHub Desktop.
Example of using YouTubeAdWrapperExample.jsx
import React from 'react';
const YouTubeAdWrapperExample = props => (
<YouTubeAdWrapper url={props.url}>
{urlWithEmbedConfig => (
<ExampleComponent {...props} url={urlWithEmbedConfig} />
)}
</YouTubeAdWrapper>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment