'Pagination in react table with different URL for each page

I have made a react table in which data is fetched from backend and rendered in react table . I have used react data table which has inbuilt pagination function .From that pagination function Navigation is working but when we hit next or previous pages are changed but URL remains same . I want to change URL on page change and also access different pages using URL by passing params in URL . How can i do that



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source