Skip to main content
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 component

If you use Next.jsโ€™s App Router, a dedicated react-instantsearch-nextjs package is available. To learn more, see App router.
InstantSearchSSRProvider is the provider component that forwards the server state to InstantSearch. Itโ€™s designed to support server-side rendering (SSR) in your InstantSearch application. To retrieve the server state and pass it down to the component, you need to use getServerState. To learn more, see Server-side rendering

Examples

Check the SSR example for full markup.

Props

InitialResults
The initial results to forward to InstantSearch.Spread the whole server state object returned by getServerState, which contains initialResults.
React.ReactNode
The part of the app that renders InstantSearch.
Last modified on September 16, 2026