🙋♂️ Made by @frankdilo
npm install use-query-string
yard add use-query-string
import useQueryString from "use-query-string";
const username = useQueryString("username");
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);