pagination-peiss
v1.0.33
Published
pagination react
Readme
0. image

1.you can install to type to terminal.
npm i pagination-peiss
npm start2.just import this top of your code.
import Pagination from "pagination-peiss"3.and then you can use like this
<Pagination
totalCount={300}
pagePerList={10}
activePage={page}
onClick={(page)=>handlePageFn(page)}
prevText={"<"}
nextText={">"}
prevEndText={"<<"}
nextEndText={">>"}
/>4. this is thte param description
totalCount : total length of the page
pagePerList : slice the length that how many you want to show
activePage : current page
onClick : when you click the each number you can handle it using your custom function
prevText : you can custom the button previous list to show
nextText : you can custom the button next list to show
prevEndText : you can custom the button at the first list to show
nextEndText : you can custom the button at the last list to show 