Return & map items in new autocomplete.js differently based on index

I am currently using the new autocomplete.js v1 alpha based on this demo code: https://codesandbox.io/s/autocomplete-guide-nh6y6?file=/src/App.js:1420-1422

I am searching through multiple indexes and would like to split up how the items are rendered based on the index.

What is the best way to do this?

Hey @ilyafish—we don’t have strongly opinionated solution as for conditional rendering yet. You could pass a id to the source and render your items differently based on this source ID.

You can check this updated example of your sandbox.