Skip to content

Commit

Permalink
Update example snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin authored Nov 6, 2017
1 parent 5c61bca commit a8415c6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ import ImageGallery from 'react-image-gallery';

class MyComponent extends React.Component {

handleImageLoad(event) {
console.log('Image loaded ', event.target)
}

render() {

const images = [
Expand All @@ -71,10 +67,7 @@ class MyComponent extends React.Component {
]

return (
<ImageGallery
items={images}
slideInterval={2000}
onImageLoad={this.handleImageLoad}/>
<ImageGallery items={images} />
);
}

Expand Down

0 comments on commit a8415c6

Please sign in to comment.