README
useUrlState
A hook that stores the state into url query parameters.
Installing
Inside your React project directory, run the following:
yarn add @ahooksjs/use-url-state -S
Or with npm:
npm install @ahooksjs/use-url-state -S
Example
import useUrlState from '@ahooksjs/use-url-state';
const [state, setState] = useUrlState({ demoCount: '1' });