index.js
function(n) {
    // n is out of range, don't do anything
		if (n > this.props.numPages || n < 1) return;
    if (this.props.onClick) this.props.onClick(n);
		this.setState({ page: n });
	}
function(n) {
    // n is out of range, don't do anything
		if (n > this.props.numPages || n < 1) return;
    if (this.props.onClick) this.props.onClick(n);
		this.setState({ page: n });
	}
function ( n ) { // n is out of range, don't do anything if ( n > this . props . numPages || n < 1 ) return ; if ( this . props . onClick ) this . props . onClick ( n ) ; this . setState ( { page : n } ) ; }
Triggered by any button click within the paginator.

@param {number} n - Page number
Triggered by any button click within the paginator .