gatsby-remark-dictionary
Version:
Create a dictionary of word and phrases to be converted to highlighted values and links. define once and all phrases will be converted during build time.
20 lines (17 loc) • 434 B
JavaScript
import React from 'react';
const YoutubeEmbed = ({ link }) => {
return (
<div className="video-responsive">
<iframe
width="750"
title="Youtube"
height="422"
src={link}
frameBorder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
></iframe>
</div>
);
};
export default YoutubeEmbed;