@liuqiang1357/use-url-state
TypeScript icon, indicating that this package has built-in type declarations

3.1.9 • Public • Published

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' });

Documentation

https://ahooks.js.org/hooks/state/use-url-state

Readme

Keywords

none

Package Sidebar

Install

npm i @liuqiang1357/use-url-state

Weekly Downloads

1

Version

3.1.9

License

MIT

Unpacked Size

39.5 kB

Total Files

7

Last publish

Collaborators

  • liuqiang1357