# `useSearchParam` React sensor hook that tracks browser's location search param. ## Usage ```jsx import {useSearchParam} from 'react-use'; const Demo = () => { const edit = useSearchParam('edit'); return (
edit: {edit || '🤷‍♂️'}
); }; ``` ## Caveats/Gotchas When using a hash router, like `react-router`'s [``](https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/api/HashRouter.md), this hook won't be able to read the search parameters as they are considered part of the hash of the URL by browsers.