Skip to content

Commit

Permalink
update documentation about stringify function
Browse files Browse the repository at this point in the history
  • Loading branch information
willemarcel committed Apr 29, 2020
1 parent 2dc0dd1 commit c1ff144
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -482,7 +482,10 @@ query parameters.
**Example**

```js
import { encodeQueryParams, NumberParam, stringify } from 'use-query-params';
import { encodeQueryParams, NumberParam } from 'use-query-params';
// since v1.0 stringify is not exported from 'use-query-params',
// so you must install the 'query-string' package in case you need it
import { stringify } from 'query-string';

// encode each parameter according to the configuration
const encodedQuery = encodeQueryParams({ foo: NumberParam }, { foo });
Expand Down

0 comments on commit c1ff144

Please sign in to comment.