Last active
July 29, 2018 02:01
-
-
Save DZuz14/dda862d058ffd992428f03b024a21184 to your computer and use it in GitHub Desktop.
Slider With Arrow Functionality Methods
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
import React, { Component } from 'react' | |
import Slide from '../slide' | |
import LeftArrow from '../left-arrow' | |
import RightArrow from '../right-arrow' | |
export default class Slider extends Component { | |
constructor(props) { | |
super(props) | |
this.state = {} | |
} | |
goToPrevSlide = () => { | |
} | |
goToNextSlide = () => { | |
} | |
render() { | |
return ( | |
<div className="slider"> | |
<Slide /> | |
<LeftArrow | |
goToPrevSlide={this.goToPrevSlide} | |
/> | |
<RightArrow | |
goToNextSlide={this.goToNextSlide} | |
/> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment