랭킹으로 돌아가기
React Hook for managing state in URL query parameters with easy serialization.
reactreactjshooksreact-hooksurlqueryqueryparamsquery-parametersquerystring
주요 지표
스타 성장
스타
2.2k
포크
99
주간 성장
—
이슈
36
5001k1.5k2k
2019년 3월2020년 5월2021년 8월2022년 11월2024년 2월2025년 4월2026년 7월
아티팩트npm
npm install use-query-paramsREADME
useQueryParams
A React Hook, HOC, and Render Props solution for managing state in URL query parameters with easy serialization.
Works with React Router 5 and 6 out of the box. TypeScript supported.
When creating apps with easily shareable URLs, you often want to encode state as query parameters, but all query parameters must be encoded as strings. useQueryParams allows you to easily encode and decode data of any type as query parameters with smart memoization to prevent creating unnecessary duplicate objects. It uses serialize-query-params.
Docs
Packages
This is a monorepo managed with Lerna.
| Package | Version | Docs | Description |
|---|---|---|---|
use-query-params |
use-query-params React library | ||
serialize-query-params |
serialize-query-params js library |
Development
To get running locally:
npm install
npx lerna bootstrap --hoist --scope "use-query-params" --scope "serialize-query-params"
npm build
npm test
Set up examples:
lerna bootstrap --scope "*-example"
lerna link
Then run one:
lerna run --scope react-router-example start
관련 저장소