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) 345 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, replaceState?: boolean) => [TSearchKey, (nextValue?: TSearchKey) => void]; export default useSearchQuery;