diff --git a/.babelrc b/.babelrc
index 2f01e1d..9bc8e32 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,3 +1,4 @@
{
- "presets": ["env"]
+ "presets": ["env"],
+ "plugins": ["transform-object-rest-spread"]
}
\ No newline at end of file
diff --git a/README.md b/README.md
index c6194b7..6e5eb75 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,9 @@ npm install --save react-responsive-embed
Then in your app import `ResponsiveEmbed` and in JSX flavour you might do:
```html
-
- You want to embed a YouTube or other `iframe` style embedded content, and you'd - like it to take up the available width, and retain it's aspect ratio. + You want to embed a YouTube or other `iframe` style embedded content, and you'd + like it to take up the available width, and retain it's aspect ratio.
- Much like the Bootstrap responsive embed helpers of old, but for react. + Much like the Bootstrap responsive embed helpers of old, but for react.
-
-
- <ResponsiveEmbed ratio='16:9' src='https://www.youtube.com/embed/2yqz9zgoC-U' />
-
-
-
-
- <ResponsiveEmbed ratio='4:3' src='https://www.youtube.com/embed/mM5_T-F1Yn4' />
-
-
-
+ <ResponsiveEmbed ratio='16:9'>
+
<iframe src='https://www.youtube.com/embed/2yqz9zgoC-U' />
+
</ResponsiveEmbed>
+
+
+ <ResponsiveEmbed ratio='4:3'>
+
<iframe src='https://www.youtube.com/embed/mM5_T-F1Yn4' />
+
</ResponsiveEmbed>
+
+ https://github.com/tableflip/react-responsive-embed
diff --git a/docs/index.html b/docs/index.html index f73008d..1155969 100644 --- a/docs/index.html +++ b/docs/index.html @@ -63,4 +63,4 @@ .tracked { letter-spacing: 0.5px; } -You want to embed a YouTube or other `iframe` style embedded content, and you'd like it to take up the available width, and retain it's aspect ratio.
Much like the Bootstrap responsive embed helpers of old, but for react.
<ResponsiveEmbed ratio='16:9' src='https://www.youtube.com/embed/2yqz9zgoC-U' />
<ResponsiveEmbed ratio='4:3' src='https://www.youtube.com/embed/mM5_T-F1Yn4' />