Skip to content

✨ feat(pagination): implement pagination with routing#1481

Open
de-vasta wants to merge 1 commit into
mate-academy:masterfrom
de-vasta:dev
Open

✨ feat(pagination): implement pagination with routing#1481
de-vasta wants to merge 1 commit into
mate-academy:masterfrom
de-vasta:dev

Conversation

@de-vasta
Copy link
Copy Markdown

- Add `react-router` dependency and configure routing with page number parameter
- Implement `Pagination` component with prev/next navigation and dynamic page links
- Add per-page selector with state management and automatic navigation to page 1 on change
- Integrate URL-based page navigation using `useParams` and `useNavigate` hooks
- Calculate and display current page items based on `perPage` and `currentPage` values
- Update **README.md** with demo link and improve formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant