embla-carousel-react
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "embla-carousel-react", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "David Cetinkaya", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -65,6 +65,2 @@ <br /> | ||
```javascript | ||
import EmblaCarouselReact from 'embla-carousel-react' | ||
``` | ||
## Usage | ||
@@ -76,2 +72,3 @@ | ||
import React, { useState, useCallback, useEffect } from 'react' | ||
import EmblaCarouselReact from 'embla-carousel-react' | ||
@@ -95,3 +92,3 @@ const EmblaCarouselComponent = () => { | ||
htmlTagName="div" | ||
emblaRef={c => setEmbla(c)} | ||
emblaRef={setEmbla} | ||
options={{ loop: false }} | ||
@@ -110,2 +107,4 @@ > | ||
} | ||
export default EmblaCarouselComponent | ||
``` | ||
@@ -117,2 +116,3 @@ | ||
import React, { Component } from 'react' | ||
import EmblaCarouselReact from 'embla-carousel-react' | ||
@@ -156,2 +156,4 @@ class EmblaCarouselComponent extends Component { | ||
} | ||
export default EmblaCarouselComponent | ||
``` | ||
@@ -158,0 +160,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17275
171