How to use the react-instantsearch-dom.connectHitsPerPage 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 yarnpkg / website / js / src / components / Refinements.js View on Github external
name={this.props.name}
                  value={value}
                  onChange={this.setRefinement}
                  checked={this.state.refinement === value}
                />
                {' ' + label}
              
            
          ))}
        
      
    );
  }
}

const VirtualHitsPerPage = connectHitsPerPage(() => null);

export const Refinements = ({ sidebarOpen, toggleSidebar, className }) => (
  <aside>
    <button>
      {sidebarOpen ? 'hide' : 'show'} refinements{' '}
      <img style="{{" alt="" src="/assets/detail/ico-readmore.svg">
    </button>
    {sidebarOpen ? (
      
        </aside>