How to use the react-instantsearch/connectors.connectPoweredBy function in react-instantsearch

To help you get started, we’ve selected a few react-instantsearch 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 jscoach / client / src / SearchPoweredBy.js View on Github external
import React from "react";
import { connectPoweredBy } from "react-instantsearch/connectors";

// You can find alternative Algolia logos in their website: https://algolia.com/press#resources
import logo from "./images/algolia-logo.svg";

const SearchPoweredBy = connectPoweredBy(({ url }) => (
  <div>
    <span>Search by</span>
    <a href="{url}">
      <img draggable="false" alt="Algolia" src="{logo}">
    </a>
  </div>
));

export default SearchPoweredBy;