UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

7 lines (6 loc) 369 B
/** * Ease the process of modify the 'search' query string in the URL for the current location. * It's just a shortcut/wrapper around useQueryParam */ declare const useSearchQuery: <TSearchKey extends string>(initialValue?: TSearchKey | undefined, replaceState?: boolean) => [TSearchKey, (nextValue?: TSearchKey | undefined) => void]; export default useSearchQuery;