Docs
useSearchParams
useSearchParams
useSearchParams is a hook that can be used to get search params from current URL
Note: This hook uses URLSearchParams class based on current pathname.
useSearchParams
return's URLSearchParams class.
So you can manipulate with them however you want.