how to remove query params from url react router Code Example
How to get the current URL and pathname in React | Suraj Sharma
v6] feature request: allow searchParams to be passed to useNavigate's options to navigate to a URL with a query string · Issue #7743 · remix-run/ react-router · GitHub
React Router v5 Search Parameters with URLSearchParams | Brian Mitchell