UNPKG

beautiful-react-hooks

Version:

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

10 lines (9 loc) 431 B
export interface UseQueryParamsOptions<TValue extends string[]> { initialValue?: TValue; replaceState?: boolean; } /** * Very similar to `useQueryParams`, it eases the process of manipulate a query string that handles multiple values */ declare const useQueryParams: <TValue extends string[]>(key: string, options?: UseQueryParamsOptions<TValue>) => [TValue, (nextValue?: TValue) => void]; export default useQueryParams;