React SDK

useQuery

useQuery provides a getter & setter for the current query.

Usage

Editable Example
​
Suggestions
    Site search by

    Combine with useSearch

    Editable Example
    ​
    Suggestions
      Site search by

      Anatomy

      useQuery returns an object containing the following properties:

      NameTypeDefaultDescription
      querystringThe string of the current query.
      setQuery(query: string) => voidMethod to set string for query.

      Parameters

      NameTypeDefaultDescription