pagination react
npm install pagination-peiss
npm i pagination-peiss
npm start
`
2.just import this top of your code.
`
import Pagination from "pagination-peiss"
`
3.and then you can use like this
`
totalCount={300}
pagePerList={10}
activePage={page}
onClick={(page)=>handlePageFn(page)}
prevText={"<"}
nextText={">"}
prevEndText={"<<"}
nextEndText={">>"}
/>
`
$3
`
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
``