Skip to content

Commit 051498e

Browse files
committed
feat(react): use hitsPerPage for multi-index-hits
1 parent 02c22b3 commit 051498e

File tree

1 file changed

+3
-0
lines changed
  • React InstantSearch/multi-index-hits/src

1 file changed

+3
-0
lines changed

React InstantSearch/multi-index-hits/src/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { Component } from 'react';
22
import {
33
InstantSearch,
44
Index,
5+
Configure,
56
Hits,
67
SearchBox,
78
Highlight,
@@ -25,13 +26,15 @@ class App extends Component {
2526
<h2>
2627
index: <code>instant_search</code>
2728
</h2>
29+
<Configure hitsPerPage={8} />
2830
<Hits hitComponent={Hit} />
2931
</Index>
3032

3133
<Index indexName="bestbuy">
3234
<h2>
3335
index: <code>bestbuy</code>
3436
</h2>
37+
<Configure hitsPerPage={16} />
3538
<Hits hitComponent={Hit} />
3639
</Index>
3740
</InstantSearch>

0 commit comments

Comments
 (0)