Created
January 28, 2020 14:17
-
-
Save zoetrope69/f9f34971bdcfa27cef1a64a97360a7d5 to your computer and use it in GitHub Desktop.
Example of using YouTubeAdWrapperExample.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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