code: function() {
  		var displayCount = this.getDisplayCount();
      var page = this.state.page;
  
      // Check position of cursor, zero based
      var idx = (page - 1) % displayCount;
  
      // list should not move if cursor isn't passed this part of the range
      var start = page - idx;
  
      // remaining pages
      var remaining = this.props.numPages - page;
  
      // Don't move cursor right if the range will exceed the number of pages
      // in other words, we've reached the home stretch
      if (page > displayCount && remaining < displayCount) {
        // add 1 due to the implementation of `range`
        start = this.props.numPages - displayCount + 1;
      }
  
      return range(start, start + displayCount);
    }
docs: Returns a range [start, end]