React SDK

useQuery

useQuery provides a getter & setter for the current query.

Usage

Editable Example
Suggestions
    Powered by

    Combine with useSearch

    Editable Example
    Suggestions
      Powered 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