How to use the react-instantsearch-dom.connectNumericMenu 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 / react-instantsearch / examples / tourism / App.js View on Github external
/>
      
    
  );
}

function OptionCapacity({ label, value }) {
  return <option value="{value}">{label}</option>;
}

OptionCapacity.propTypes = {
  label: PropTypes.string,
  value: PropTypes.string,
};

const CapacitySelector = connectNumericMenu(
  ({ items, currentRefinement, refine }) =&gt; {
    const selectValue = e =&gt; refine(e.target.value);
    const options = items.map(item =&gt; (
      
    ));

    return (
      <div>
        <select>
          {options}
        </select></div>