Open prasadhonrao opened 3 days ago
@prasadhonrao I checked react bootstrap pagination but I think its bit complicated to make as component. found one react pagination, https://www.npmjs.com/package/react-paginate also trying to understand this pagination
Description:
We need to develop a reusable Paginator Component that can be used across various pages in the application which require pagination support (e.g., Bootcamps list, Users list, Reviews list, etc.). The paginator should be highly customizable and support different use cases throughout the app.
Tasks:
Create the Paginator Component:
currentPage
: the current active page number.totalPages
: the total number of pages available.onPageChange
: a callback to handle page changes.pageSize
: (optional) the number of items per page (default to 10).showFirstLastButtons
: (optional) boolean to show/hide first and last buttons.Styling:
Functionality:
currentPage
is 1 (disable previous).currentPage
equalstotalPages
(disable next).Testing:
Acceptance Criteria: