content: import React from 'react';
  
  class PaginationLink extends React.Component {
  
      constructor() {
          super();
          this.changePage = this.changePage.bind(this);
      }
  
      changePage(e,pageNum) {
          e.preventDefault();
  
          this.props.changePage(pageNum);
      }
  
      render() {
          let {page,paged} = this.props;
  
          if( page === paged ){
              return (
                  <span href={page} onClick={(e) => this.changePage(e,page)} className="page-link active">{page}</span>
              )
          }
  
          return (
              <a href={page} onClick={(e) => this.changePage(e,page)} className="page-link">{page}</a>
          )
      }
  }
  
  PaginationLink.propTypes = {
      page: React.PropTypes.number.isRequired,
      paged: React.PropTypes.number.isRequired,
      changePage: React.PropTypes.func.isRequired
  };
  
  export default PaginationLink