1.0.0 • Published 4 years ago

react-bootstrap-pagination-logic v1.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

React Bootstrap Pagination Logic

Simple to use component that takes care of all the logic involved on creating the UI for a pagination system using Bootstrap 4 for the styling

NPM JavaScript Style Guide

Install

npm install --save react-bootstrap-pagination-logic

Usage

import React, { Component } from 'react'
import Pagination from 'react-bootstrap-pagination-logic'

class Example extends Component {

  handlePageChange = (page) => {
    // your code here ...
    console.log(page)
  }

  render () {
    return (
      <Pagination
        current_page={10}
        last_page={20}
        position="center"
        handlePageChange={this.handlePageChange} />
    )
  }

}

Final Result

Pagination

License

MIT © euobrunocosta