# Function useSearchParams

- useSearchParams(defaultInit?): [URLSearchParams, SetURLSearchParams]

- A convenient wrapper for reading and writing search parameters via the URLSearchParams interface.

  #### Parameters

  - `Optional` defaultInit: URLSearchParamsInit

  #### Returns [URLSearchParams, SetURLSearchParams]

  - Defined in common/temp/node_modules/.pnpm/react-router-dom@6.23.1_react-dom@18.3.1+react@18.3.1/node_modules/react-router-dom/dist/index.d.ts:219