Skip to content

Instantly share code, notes, and snippets.

@DZuz14
Created January 29, 2017 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DZuz14/420da41049fdb50ac24c490d36b84b9b to your computer and use it in GitHub Desktop.
Save DZuz14/420da41049fdb50ac24c490d36b84b9b to your computer and use it in GitHub Desktop.
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