Instant search react hooks multi indices search

Hello,
I am using the react-instantsearch-hooks package to add search to a fairly simple site,
my question is, using this package, how can I make the search basically cover multiple indices at once, in other words, how can I search in two or more indices using the same search box.
I am aware of the following:

  1. the package is not completely production-ready, and I am starting a new app using react hooks under the next js framework.
  2. I am using the <Index> component to set the indices names, but I am getting some errors that I could not comprehend.

I hope someone can help me with this. and, one-note, I am fairly new to Algolia.