Skip to content

Instantly share code, notes, and snippets.

@johnnykoo84
Created April 17, 2019 14:56
Show Gist options
  • Save johnnykoo84/bc7ead08aa8d52ae95ab47961f0d1fac to your computer and use it in GitHub Desktop.
Save johnnykoo84/bc7ead08aa8d52ae95ab47961f0d1fac to your computer and use it in GitHub Desktop.
const Button = ({ loadMoreArticles }) => (
<div className="mt-3">
<button
className="btn btn-outline-dark btn-sm mr-2"
onClick={() => loadMoreArticles('prev')}
>
<i className="fas fa-angle-left" />
</button>
<button
className="btn btn-outline-dark btn-sm"
onClick={() => loadMoreArticles('next')}
>
<i className="fas fa-angle-right" />
</button>
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment