How to use the react-instantsearch-dom.connectHitInsights function in react-instantsearch-dom

To help you get started, we’ve selected a few react-instantsearch-dom 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 / doc-code-samples / React InstantSearch / algolia-insights / src / HitWithInsights.js View on Github external
eventName: 'Add to basket',
          });
        }}
      >
        Send conversion
      
    
  );
}

Hit.propTypes = {
  hit: PropTypes.object.isRequired,
  insights: PropTypes.func.isRequired,
};

export const HitWithInsights = connectHitInsights(window.aa)(Hit);