react-bootstrap-pagination-logic

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-bootstrap-pagination-logic

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

21.1 kB

Total Files

6

Last publish

Collaborators

  • euobrunocosta