UNPKG

beautiful-react-hooks

Version:

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

11 lines (10 loc) 359 B
import useQueryParam from './useQueryParam'; /** * Ease the process of modify the 'search' query string in the URL for the current location. * It's just a shortcut/wrapper around useQueryParam */ const useSearchQuery = (initialValue, replaceState = false) => useQueryParam('search', { initialValue, replaceState, }); export default useSearchQuery;