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
'use strict'; | |
import Carousel from '../src/carousel'; | |
import React from 'react'; | |
import ReactDom from 'react-dom'; | |
import Modal from 'react-modal'; | |
window.React = React; | |
const App = React.createClass({ |
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
'use strict'; | |
import Carousel from "../src/carousel"; | |
import React from "react"; | |
import ReactDom from "react-dom"; | |
import Modal from "react-modal"; | |
window.React = React; | |
const App = React.createClass({ |
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
class PhotoCarousel extends React.Component { | |
constructor() { | |
super(); | |
this.state = { | |
currentSlideIndex: 0 // track the index of the current slide | |
}; | |
this.handleAfterSlide = this.handleAfterSlide.bind(this); | |
} |