https://github.com/d3portillo/useparams
useParams React hook playground to consume and manipulate query-strings
https://github.com/d3portillo/useparams
Last synced: 6 months ago
JSON representation
useParams React hook playground to consume and manipulate query-strings
- Host: GitHub
- URL: https://github.com/d3portillo/useparams
- Owner: D3Portillo
- Created: 2022-05-14T09:05:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-17T06:02:30.000Z (over 3 years ago)
- Last Synced: 2025-03-27T03:34:12.446Z (6 months ago)
- Language: TypeScript
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
useparams: A tiny System consistent < 1KB React hook to consume and manipulate query string params.
## Install
```sh
npm i useparams```
## Usage
```js
const params = useParams({ aNumber: 1 })
console.log(params.aNumber) // 1```