8000 GitHub - frankdilo/use-query-string: Use query strings comfortably with React Hooks.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

frankdilo/use-query-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useQueryString

🙋‍♂️ Made by @frankdilo

Install

npm install use-query-string
yard add use-query-string

Basic usage

import useQueryString from "use-query-string";

const username = useQueryString("username");

Transformers

Transformers allow you to modify the value you get from useQueryString. They are functions that receive the raw query string value and return a transformed version.

Here is an example:

import useQueryString from "use-query-string";

const id = useQueryString("id", parseInt);

About

Use query strings comfortably with React Hooks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0