Created
January 29, 2017 04:41
-
-
Save DZuz14/420da41049fdb50ac24c490d36b84b9b to your computer and use it in GitHub Desktop.
This file contains hidden or 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'; | |
const RightArrow = (props) => { | |
return ( | |
<div onClick={props.nextSlide} className="nextArrow"> | |
<i className="fa fa-arrow-right fa-2x" aria-hidden="true"></i> | |
</div> | |
); | |
} | |
export default RightArrow; | |
/* Pretend these are in their own separate files */ | |
import React, { Component } from 'react'; | |
const LeftArrow = (props) => { | |
return ( | |
<div onClick={props.previousSlide} className="backArrow"> | |
<i className="fa fa-arrow-left fa-2x" aria-hidden="true"></i> | |
</div> | |
); | |
} | |
export default LeftArrow; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment