Skip to content

Commit 0fcb693

Browse files
authored
Fix typo in use-query-params/README.md (#1308)
1 parent 03505bd commit 0fcb693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/use-query-params/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import React from 'react'
7373
import useQueryParams from '@scaleway/use-query-params'
7474

7575
const Component = () => {
76-
const { queryParams, setQueryParams } = useQueryParams()
76+
const { queryParams, replaceQueryParams } = useQueryParams()
7777
const { user, company } = queryParams // user will be undefined and company will be "Scaleway"
7878
const setUser = () => replaceQueryParams({ user: 'John' }) // user will be "John" and company will be undefined
7979
// ?user=John

0 commit comments

Comments
 (0)