How to use the react-instantsearch-core.connectHits function in react-instantsearch-core

To help you get started, we’ve selected a few react-instantsearch-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github algolia / react-instantsearch / stories / QueryRuleContext.stories.tsx View on Github external
link: string;
};

type MovieHit = {
  actors: string[];
  color: string;
  genre: string[];
  image: string;
  objectID: string;
  score: number;
  title: string;
};

const stories = storiesOf('QueryRuleContext', module);

const StoryHits = connectHits(({ hits }: { hits: MovieHit[] }) => (
  <div>
    {hits.map(hit =&gt; (
      <div>
        <div>
          <img src="{hit.image}">
        </div>

        <div>
          <div>
            
          </div>
        </div>
      </div>
    ))}
  </div>
));
github algolia / react-instantsearch / packages / react-instantsearch-dom / src / widgets / Hits.js View on Github external
*
 * const searchClient = algoliasearch(
 *   'latency',
 *   '6be0576ff61c053d5f9a3225e2a90f76'
 * );
 * const App = () =&gt; (
 *   
 *     
 *   
 * );
 */

export default connectHits(Hits);