useQuery
useQuery
provides a getter & setter for the current query.
Usage
Editable Example
​
Suggestions
Combine with useSearch
Editable Example
​
Suggestions
Anatomy
useQuery
returns an object containing the following properties:
Name | Type | Default | Description |
---|---|---|---|
query | string | The string of the current query. | |
setQuery | (query: string) => void | Method to set string for query. |
Parameters
Name | Type | Default | Description |
---|