This is the React InstantSearch v7 documentation.
If you’re upgrading from v6, see the upgrade guide.
If you were using React InstantSearch Hooks,
this v7 documentation applies—just check for necessary changes.
To continue using v6, you can find the archived documentation.
Signature
Import
JavaScript
About this Hook
A React Hook that lets you use an InstantSearch connector in a React component. Use this for connecting your own connectors with React InstantSearch.Examples
Parameters
The InstantSearch connector to use.
To learn more, see Building a custom connector.
Props to pass to the InstantSearch widget.
Adds other properties like
$$widgetType
to the instantiated widget.Returns
The connector API, such as state and functions.